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 2014/01/28 23:20:20 UTC

svn commit: r1562277 - /incubator/climate/trunk/ocw/tests/test_utils.py

Author: joyce
Date: Tue Jan 28 22:20:19 2014
New Revision: 1562277

URL: http://svn.apache.org/r1562277
Log:
CLIMATE-329 - Add invalid time units 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=1562277&r1=1562276&r2=1562277&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/tests/test_utils.py (original)
+++ incubator/climate/trunk/ocw/tests/test_utils.py Tue Jan 28 22:20:19 2014
@@ -49,5 +49,12 @@ class TestTimeUnitsParse(unittest.TestCa
 
         self.assertEquals(units, 'minutes')
 
+    def test_invalid_parse(self):
+        self.assertRaises(
+            ValueError,
+            utils.parse_time_units,
+            'parsecs since a made up date'
+        )
+
 if __name__ == '__main__':
     unittest.main()