Ejemplo n.º 1
0
 def test_single_match(self):
     self.assertEqual(
         [dt(2001, 9, 11)],
         parser.parseDates('2001-09-11')
     )
Ejemplo n.º 2
0
 def test_single_match(self):
     self.assertEqual([dt(2001, 9, 11)], parser.parseDates('2001-09-11'))
Ejemplo n.º 3
0
 def test_double_match(self):
     self.assertEqual(
         [dt(2001, 9, 11), dt(2003, 5, 3)],
         parser.parseDates('2001-09-11 and 2003-5-03')
     )
Ejemplo n.º 4
0
 def test_double_match(self):
     self.assertEqual([dt(2001, 9, 11), dt(2003, 5, 3)],
                      parser.parseDates('2001-09-11 and 2003-5-03'))