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