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