Commit d8697c02 authored by Andreas Jung's avatar Andreas Jung

added ISO8601 tests

parent 2cd2da12
......@@ -190,6 +190,21 @@ class DateTimeTests (unittest.TestCase):
assert ddays == 3000000L, ddays
def testISO8601(self):
''' iso 8601 dates '''
ref0 = DateTime('2002/5/2 8:00am GMT')
ref1 = DateTime('2002/5/2 8:00am US/Eastern')
isoDt = DateTime('2002-05-02T08:00:00')
self.assertEqual( ref0, isoDt)
isoDt = DateTime('2002-05-02T08:00:00Z')
self.assertEqual( ref0, isoDt)
isoDt = DateTime('2002-05-02T08:00:00Z-04:00')
self.assertEqual( ref1, isoDt)
def test_suite():
return unittest.makeSuite(DateTimeTests)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment