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 2013/08/15 22:55:48 UTC

svn commit: r1514493 - /incubator/climate/branches/RefactorInput/ocw/tests/test_dataset_processor.py

Author: joyce
Date: Thu Aug 15 20:55:48 2013
New Revision: 1514493

URL: http://svn.apache.org/r1514493
Log:
CLIMATE-237 - Make subset validity test a bit more robust

Modified:
    incubator/climate/branches/RefactorInput/ocw/tests/test_dataset_processor.py

Modified: incubator/climate/branches/RefactorInput/ocw/tests/test_dataset_processor.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/tests/test_dataset_processor.py?rev=1514493&r1=1514492&r2=1514493&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/tests/test_dataset_processor.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/tests/test_dataset_processor.py Thu Aug 15 20:55:48 2013
@@ -161,6 +161,8 @@ class TestSubset(unittest.TestCase):
     def test_subset(self):
         subset = dp.subset(self.subregion, self.target_dataset)
         self.assertEqual(subset.lats.shape[0], 82)
+        self.assertSequenceEqual(list(np.array(range(-81, 82, 2))), 
+                list(subset.lats))
         self.assertEqual(subset.lons.shape[0], 162)
         self.assertEqual(subset.times.shape[0], 37)
         self.assertEqual(subset.values.shape, (37, 82, 162))