Exemple #1
0
    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')
Exemple #2
0
    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')
Exemple #3
0
    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')
Exemple #4
0
    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')
Exemple #5
0
    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')
Exemple #6
0
    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')