climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1513194 - /incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py
Date Mon, 12 Aug 2013 16:55:48 GMT
Author: joyce
Date: Mon Aug 12 16:55:48 2013
New Revision: 1513194

URL: http://svn.apache.org/r1513194
Log:
CLIMATE-214 - Update add_metric unit test to include unary metric

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=1513194&r1=1513193&r2=1513194&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py Mon Aug 12 16:55:48
2013
@@ -84,10 +84,16 @@ class TestEvaluation(unittest.TestCase):
                 self.other_var)
 
     def test_add_metric(self):
+        # Add a "binary" metric
         self.assertEqual(len(self.eval.metrics), 0)
         self.eval.add_metric(Bias())
         self.assertEqual(len(self.eval.metrics), 1)
 
+        # Add a "unary" metric
+        self.assertEqual(len(self.eval.unary_metrics), 0)
+        self.eval.add_metric(TemporalStdDev())
+        self.assertEqual(len(self.eval.unary_metrics), 1)
+
     def test_add_metrics(self):
         self.assertEqual(len(self.eval.metrics), 0)
         self.eval.add_metrics([Bias(), Bias()])



Mime
View raw message