climate-commits mailing list archives

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

URL: http://svn.apache.org/r1562279
Log:
CLIMATE-329 - Add invalid time base 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=1562279&r1=1562278&r2=1562279&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/tests/test_utils.py (original)
+++ incubator/climate/trunk/ocw/tests/test_utils.py Tue Jan 28 22:20:43 2014
@@ -63,5 +63,12 @@ class TestTimeBaseParse(unittest.TestCas
 
         self.assertEquals(base_time, start_time)
 
+    def test_invalid_time_base(self):
+        self.assertRaises(
+            ValueError,
+            utils.parse_time_base,
+            'days since 1988g06g10g00g00g00'
+        )
+
 if __name__ == '__main__':
     unittest.main()



Mime
View raw message