Пример #1
0
def test_datetime_module_support():
    dt = datetime.time(6, 12)
    actual = klok.tell_time(dt, part_of_day=False)
    expected = "twaalf over zes"
    assert actual == expected

    dt = datetime.datetime(2015, 1, 1, 6, 12)
    actual = klok.tell_time(dt, part_of_day=False)
    expected = "twaalf over zes"
    assert actual == expected
Пример #2
0
def test_part_of_day(hour, minute, expected):
    actual = klok.tell_time(
        hour=hour,
        minute=minute)
    assert actual == expected