예제 #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))