climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1514728 - /incubator/climate/branches/RefactorInput/ocw/tests/test_dataset.py
Date Fri, 16 Aug 2013 14:30:41 GMT
Author: joyce
Date: Fri Aug 16 14:30:40 2013
New Revision: 1514728

URL: http://svn.apache.org/r1514728
Log:
CLIMATE-254 - Add tests for lat_max property

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

Modified: incubator/climate/branches/RefactorInput/ocw/tests/test_dataset.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/tests/test_dataset.py?rev=1514728&r1=1514727&r2=1514728&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/tests/test_dataset.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/tests/test_dataset.py Fri Aug 16 14:30:40
2013
@@ -83,6 +83,7 @@ class TestBounds(unittest.TestCase):
                             dt.datetime(2000, 1, 1), # Start time
                             dt.datetime(2002, 1, 1)) # End time
 
+    # Lat Min
     def test_out_of_bounds_lat_min(self):
         with self.assertRaises(ValueError):
             self.bounds.lat_min = -91
@@ -94,5 +95,17 @@ class TestBounds(unittest.TestCase):
         with self.assertRaises(ValueError):
             self.bounds.lat_min = 81
 
+    # Lat Max
+    def test_out_of_bounds_lat_max(self):
+        with self.assertRaises(ValueError):
+            self.bounds.lat_max = -91
+
+        with self.assertRaises(ValueError):
+            self.bounds.lat_max = 91
+
+    def test_inverted_max_max_lat(self):
+        with self.assertRaises(ValueError):
+            self.bounds.lat_max = -81
+
 if __name__ == '__main__':
     unittest.main()



Mime
View raw message