climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1562281 - /incubator/climate/trunk/ocw/tests/test_utils.py
Date Tue, 28 Jan 2014 22:20:54 GMT
Author: joyce
Date: Tue Jan 28 22:20:54 2014
New Revision: 1562281

URL: http://svn.apache.org/r1562281
Log:
CLIMATE-329 - Add invalid time base string parse test

Modified:
    incubator/climate/trunk/ocw/tests/test_utils.py

Modified: incubator/climate/trunk/ocw/tests/test_utils.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw/tests/test_utils.py?rev=1562281&r1=1562280&r2=1562281&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/tests/test_utils.py (original)
+++ incubator/climate/trunk/ocw/tests/test_utils.py Tue Jan 28 22:20:54 2014
@@ -76,5 +76,12 @@ class TestBaseTimeStringParse(unittest.T
         
         self.assertEquals(base, '1988-06-10 00:00:00')
 
+    def test_invalid_time_base_string_parse(self):
+        self.assertRaises(
+            ValueError,
+            utils.parse_base_time_string,
+            'this string is not valid'
+        )
+
 if __name__ == '__main__':
     unittest.main()



Mime
View raw message