def test_good4(self): self.time = Time.check_time("03:32:50") correct_time = time(3, 32, 50) self.assertEqual( correct_time, self.time)
def test_vgood5(self): self.time = Time.check_time("3:35pm") correct_time = time(15, 35, 00) self.assertEqual( correct_time, self.time)
def test_middle3(self): self.time = Time.check_time("03 - 32/74") correct_time = time(3, 32, 59) self.assertEqual( correct_time, self.time)
def test_bad2(self): self.time = Time.check_time("70 80") correct_time = time(23, 59, 00) self.assertEqual( correct_time, self.time)
def test_bad1(self): self.time = Time.check_time("52304") correct_time = time(00, 00, 00) self.assertEqual( correct_time, self.time)
def test_vbad0(self): self.time = Time.check_time("iutoeht") correct_time = time(00, 00, 00) self.assertEqual( correct_time, self.time)
def setUp(self): self.time = Time.check_time("")