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:45:46 UTC

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

Author: joyce
Date: Fri Aug 16 14:45:45 2013
New Revision: 1514739

URL: http://svn.apache.org/r1514739
Log:
CLIMATE-254 - Add tests for start 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=1514739&r1=1514738&r2=1514739&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:45:45 2013
@@ -131,5 +131,15 @@ class TestBounds(unittest.TestCase):
         with self.assertRaises(ValueError):
             self.bounds.lon_max = 181
 
+    # Temporal tests
+    def test_inverted_start_end_times(self):
+        with self.assertRaises(ValueError):
+            self.bounds.start = dt.datetime(2003, 1, 1)
+
+    # Start tests
+    def test_invalid_start(self):
+        with self.assertRaises(ValueError):
+            self.bounds.start = "This is not a date time object"
+
 if __name__ == '__main__':
     unittest.main()