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:49:00 UTC

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

Author: joyce
Date: Fri Aug 16 14:49:00 2013
New Revision: 1514743

URL: http://svn.apache.org/r1514743
Log:
CLIMATE-254 - Add tests for end 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=1514743&r1=1514742&r2=1514743&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:49:00 2013
@@ -136,10 +136,18 @@ class TestBounds(unittest.TestCase):
         with self.assertRaises(ValueError):
             self.bounds.start = dt.datetime(2003, 1, 1)
 
+        with self.assertRaises(ValueError):
+            self.bounds.end = dt.datetime(1999, 1, 1)
+
     # Start tests
     def test_invalid_start(self):
         with self.assertRaises(ValueError):
             self.bounds.start = "This is not a date time object"
 
+    # End tests
+    def test_invalid_end(self):
+        with self.assertRaises(ValueError):
+            self.bounds.end = "This is not a date time object"
+
 if __name__ == '__main__':
     unittest.main()