示例#1
0
 def test_unix_timestamp(self):
     assert date(1970, 1, 1) == parse_date('1.3343')
示例#2
0
 def test_date_parsing(self):
     assert date(1970, 1, 1) == parse_date('1970-01-01')
     assert date(1970, 1, 1) == parse_date('1970-01-01T00:00:00.001')
     assert date(1970, 1, 1) == parse_date('1970-01-01T00:00:00.001000')