示例#1
0
 def test_string_date(self):
     d = "2009-10-10"
     self.assertEquals(parse_date(d), "2009-10-10")
示例#2
0
 def test_string_date(self):
     d = False
     self.assertEquals(parse_date(d), None)
示例#3
0
 def test_datetime(self):
     d = datetime(2009,10,10)
     self.assertEquals(parse_date(d), "2009-10-10")