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 2014/02/21 05:38:07 UTC
svn commit: r1570448 -
/incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
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))