Exemple #1
0
    def test_military_time(self):
        parsed_value = parse_time('2145')

        self.assertEqual(
            datetime.time(hour=21, minute=45),
            parsed_value
        )
Exemple #2
0
    def test_clock_time(self):
        parsed_value = parse_time('21:45:34')

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

        self.assertEqual(datetime.time(hour=21, minute=45), parsed_value)
Exemple #4
0
    def test_clock_time(self):
        parsed_value = parse_time('21:45:34')

        self.assertEqual(datetime.time(hour=21, minute=45, second=34),
                         parsed_value)