climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1528688 - /incubator/climate/trunk/ocw/tests/test_dap.py
Date Wed, 02 Oct 2013 23:48:28 GMT
Author: joyce
Date: Wed Oct  2 23:48:28 2013
New Revision: 1528688

URL: http://svn.apache.org/r1528688
Log:
CLIMATE-309 - Add Dataset shape checks

Modified:
    incubator/climate/trunk/ocw/tests/test_dap.py

Modified: incubator/climate/trunk/ocw/tests/test_dap.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw/tests/test_dap.py?rev=1528688&r1=1528687&r2=1528688&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/tests/test_dap.py (original)
+++ incubator/climate/trunk/ocw/tests/test_dap.py Wed Oct  2 23:48:28 2013
@@ -26,5 +26,14 @@ class test_dap(unittest.TestCase):
     def test_dataset_is_returned(self):
         self.assertTrue(isinstance(self.dataset, Dataset))
 
+    def test_correct_lat_shape(self):
+        self.assertEquals(len(self.dataset.lats), 89)
+
+    def test_correct_lon_shape(self):
+        self.assertEquals(len(self.dataset.lons), 180)
+
+    def test_correct_time_shape(self):
+        self.assertEquals(len(self.dataset.times), 1857)
+
 if __name__ == '__main__':
     unittest.main()



Mime
View raw message