def test_military_time(self): parsed_value = parse_time('2145') self.assertEqual( datetime.time(hour=21, minute=45), parsed_value )
def test_clock_time(self): parsed_value = parse_time('21:45:34') self.assertEqual( datetime.time(hour=21, minute=45, second=34), parsed_value )
def test_military_time(self): parsed_value = parse_time('2145') self.assertEqual(datetime.time(hour=21, minute=45), parsed_value)
def test_clock_time(self): parsed_value = parse_time('21:45:34') self.assertEqual(datetime.time(hour=21, minute=45, second=34), parsed_value)