climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1570448 - /incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
Date Fri, 21 Feb 2014 04:38:07 GMT
Author: joyce
Date: Fri Feb 21 04:38:07 2014
New Revision: 1570448

URL: http://svn.apache.org/r1570448
Log:
CLIMATE-332 - Add partial eval plot title generation tests

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=1570448&r1=1570447&r2=1570448&view=diff
==============================================================================
--- incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py (original)
+++ incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py Fri Feb 21 04:38:07 2014
@@ -186,6 +186,17 @@ class TestPlotTitleCreation(unittest.Tes
             'TemporalStdDev of T1'
         )
 
+	def test_unary_plot_title_generation_partial_eval(self):
+		self.assertEquals(
+            bp._generate_unary_eval_plot_title(self.unary_evaluation, 0, 0),
+            'TemporalStdDev of T1'
+        )
+
+        self.assertEquals(
+            bp._generate_unary_eval_plot_title(self.unary_evaluation, 1, 0),
+            'TemporalStdDev of T2'
+        )
+
 def _create_fake_dataset(name):
     lats = numpy.array(range(-10, 25, 1))
     lons = numpy.array(range(-30, 40, 1))



Mime
View raw message