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/16 16:36:50 UTC

svn commit: r1514732 - /incubator/climate/branches/RefactorInput/ocw/tests/test_dataset.py

Author: joyce
Date: Fri Aug 16 14:36:50 2013
New Revision: 1514732

URL: http://svn.apache.org/r1514732
Log:
CLIMATE-254 - Add tests for lon_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=1514732&r1=1514731&r2=1514732&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:36:50 2013
@@ -119,6 +119,17 @@ class TestBounds(unittest.TestCase):
         with self.assertRaises(ValueError):
             self.bounds.lon_min = 161
 
+    # Lon Max
+    def test_out_of_bounds_lon_max(self):
+        with self.assertRaises(ValueError):
+            self.bounds.lon_max = -181
+
+        with self.assertRaises(ValueError):
+            self.bounds.lon_max = 181
+
+    def test_inverted_max_max_lon(self):
+        with self.assertRaises(ValueError):
+            self.bounds.lon_max = -161
 
 if __name__ == '__main__':
     unittest.main()