You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/08/16 19:15:24 UTC

svn commit: r1514798 - /incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py

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,