def test_error(self): with pytest.raises(ValueError): inputs.date_from_iso8601('2008-13-13')
def test_valid_values(self, value, expected): assert inputs.date_from_iso8601(value) == expected