climate-commits mailing list archives

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

URL: http://svn.apache.org/r1562280
Log:
CLIMATE-329 - Add valid 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=1562280&r1=1562279&r2=1562280&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/tests/test_utils.py (original)
+++ incubator/climate/trunk/ocw/tests/test_utils.py Tue Jan 28 22:20:48 2014
@@ -70,5 +70,11 @@ class TestTimeBaseParse(unittest.TestCas
             'days since 1988g06g10g00g00g00'
         )
 
+class TestBaseTimeStringParse(unittest.TestCase):
+    def test_valid_time_base_string_parse(self):
+        base = utils.parse_base_time_string('days since 1988-06-10 00:00:00')
+        
+        self.assertEquals(base, '1988-06-10 00:00:00')
+
 if __name__ == '__main__':
     unittest.main()



Mime
View raw message