climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1566130 - /incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
Date Sat, 08 Feb 2014 21:00:27 GMT
Author: joyce
Date: Sat Feb  8 21:00:26 2014
New Revision: 1566130

URL: http://svn.apache.org/r1566130
Log:
CLIMATE-332 - Add invalid metric load test

Modified:
    incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py

Modified: incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py?rev=1566130&r1=1566129&r2=1566130&view=diff
==============================================================================
--- incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py (original)
+++ incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py Sat Feb  8 21:00:26 2014
@@ -48,3 +48,6 @@ class TestMetricLoad(unittest.TestCase):
         metric_objs = backend.processing._load_metrics(['Bias', 'TemporalStdDev'])
         self.assertTrue(isinstance(metric_objs[0], metrics.Bias))
         self.assertTrue(isinstance(metric_objs[1], metrics.TemporalStdDev))
+
+    def test_invalid_metric_load(self):
+        self.assertRaises(ValueError, backend.processing._load_metrics, ['AAA'])



Mime
View raw message