Exemplo n.º 1
0
 def test_wrong_format(self):
     self.assertEqual(main._get_date("wrongformat",self.datestr), None) 
Exemplo n.º 2
0
 def test_no_day(self):
     self.assertEqual(main._get_date(self.timestr, ""), None) 
Exemplo n.º 3
0
 def test_no_time(self):
     self.assertEqual(main._get_date("",self.datestr), None) 
Exemplo n.º 4
0
 def test_good_date(self):
     self.assertEqual(main._get_date(self.timestr, self.datestr), 
             self.datetime)