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/10/03 01:48:28 UTC
svn commit: r1528688 - /incubator/climate/trunk/ocw/tests/test_dap.py
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()