climate-commits mailing list archives

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

URL: http://svn.apache.org/r1562276
Log:
CLIMATE-329 - Add valid 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=1562276&r1=1562275&r2=1562276&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/tests/test_utils.py (original)
+++ incubator/climate/trunk/ocw/tests/test_utils.py Tue Jan 28 22:20:15 2014
@@ -43,5 +43,11 @@ class TestDecodeTimes(unittest.TestCase)
         self.assertEquals(times[0], start_time)
         self.assertEquals(times[-1], end_time)
 
+class TestTimeUnitsParse(unittest.TestCase):
+    def test_valid_parse(self):
+        units = utils.parse_time_units('minutes since a made up date')
+
+        self.assertEquals(units, 'minutes')
+
 if __name__ == '__main__':
     unittest.main()



Mime
View raw message