def test_write_end_of_day_time_with_setting_true(self): time = datetime.time.max str_value = write_time(time, True) self.assertEqual(str_value, '2400')
def test_write_intra_day_time_with_setting_true(self): time = datetime.time(hour=17, minute=59, second=0) str_value = write_time(time, True) self.assertEqual(str_value, '17:59:00')
def test_write_intra_day_time_with_setting_false(self): time = datetime.time(hour=17, minute=59) str_value = write_time(time, False) self.assertEqual(str_value, '1759')