示例#1
0
 def test_parse_short_date_post2000(self):
     dstr = "081006"
     self.assertEqual(date(2008, 10, 6), roipac.parse_date(dstr))
示例#2
0
 def test_parse_date_range(self):
     dstr = "980416-081006"
     exp = (date(1998, 4, 16), date(2008, 10, 6))
     self.assertEqual(exp, roipac.parse_date(dstr))
示例#3
0
 def test_parse_short_date_pre2000(self):
     dstr = "980416"
     self.assertEqual(date(1998, 4, 16), roipac.parse_date(dstr))