Example #1
0
def test_input_variable_future_date():
    with pytest.raises(ValueError):
        pretty_date(NOW + timedelta(days=1))
Example #2
0
def test_pretty_date(arg, expected):
    assert pretty_date(arg) == expected
Example #3
0
def test_input_variable_of_wrong_type():
    with pytest.raises(ValueError):
        pretty_date(123)