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:34:09 UTC

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

Author: joyce
Date: Fri Aug 16 14:34:08 2013
New Revision: 1514730

URL: http://svn.apache.org/r1514730
Log:
CLIMATE-254 - Add tests for lon_min 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=1514730&r1=1514729&r2=1514730&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:34:08 2013
@@ -107,5 +107,18 @@ class TestBounds(unittest.TestCase):
         with self.assertRaises(ValueError):
             self.bounds.lat_max = -81
 
+    # Lon Min
+    def test_out_of_bounds_lon_min(self):
+        with self.assertRaises(ValueError):
+            self.bounds.lon_min = -181
+
+        with self.assertRaises(ValueError):
+            self.bounds.lon_min = 181
+
+    def test_inverted_max_max_lon(self):
+        with self.assertRaises(ValueError):
+            self.bounds.lon_min = 161
+
+
 if __name__ == '__main__':
     unittest.main()