climate-commits mailing list archives

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

URL: http://svn.apache.org/r1570451
Log:
CLIMATE-332 - Add missing spatial rebin helper 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=1570451&r1=1570450&r2=1570451&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:25 2014
@@ -113,6 +113,9 @@ class TestSpatialRebinHelpers(unittest.T
 
         new_lats, new_lons = bp._calculate_new_latlon_bins(eval_bounds, lat_step, lon_step)
 
+        self.assertTrue(numpy.array_equal(lats, new_lats))
+        self.assertTrue(numpy.array_equal(lons, new_lons))
+
 class TestFilePathCreation(unittest.TestCase):
     def setUp(self):
         self.full_evaluation = Evaluation(



Mime
View raw message