climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1514798 - /incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py
Date Fri, 16 Aug 2013 17:15:24 GMT
Author: joyce
Date: Fri Aug 16 17:15:24 2013
New Revision: 1514798

URL: http://svn.apache.org/r1514798
Log:
CLIMATE-257 - Add test for ref_dataset property.

Modified:
    incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py

Modified: incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py?rev=1514798&r1=1514797&r2=1514798&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py Fri Aug 16 17:15:24
2013
@@ -63,6 +63,10 @@ class TestEvaluation(unittest.TestCase):
         # TemporalStdDev is a "unary" metric and should be stored as such
         self.assertEqual(len(self.eval.unary_metrics), 1)
 
+    def test_invalid_ref_dataset(self):
+        with self.assertRaises(TypeError):
+            self.eval.ref_dataset = "This isn't a Dataset object"
+
     def test_valid_subregion(self):
         bound = Bounds(
                 -10, 10, 



Mime
View raw message