예제 #1
0
 def test_good4(self):
   self.time = Time.check_time("03:32:50")
   correct_time = time(3, 32, 50)
   self.assertEqual( correct_time, self.time)
예제 #2
0
 def test_vgood5(self):
   self.time = Time.check_time("3:35pm")
   correct_time = time(15, 35, 00)
   self.assertEqual( correct_time, self.time)
예제 #3
0
 def test_middle3(self):
   self.time = Time.check_time("03 - 32/74")
   correct_time = time(3, 32, 59)
   self.assertEqual( correct_time, self.time)
예제 #4
0
 def test_bad2(self):
   self.time = Time.check_time("70 80")
   correct_time = time(23, 59, 00)
   self.assertEqual( correct_time, self.time)
예제 #5
0
 def test_bad1(self):
   self.time = Time.check_time("52304")
   correct_time = time(00, 00, 00)
   self.assertEqual( correct_time, self.time)
예제 #6
0
 def test_vbad0(self):
   self.time = Time.check_time("iutoeht")
   correct_time = time(00, 00, 00)
   self.assertEqual( correct_time, self.time)
예제 #7
0
 def setUp(self):
   self.time = Time.check_time("")