def test_float_property_invalid(value): int_prop = FloatProperty() with pytest.raises(ValueError): int_prop.clean(value)
def test_float_property_valid(value): int_prop = FloatProperty() assert int_prop.clean(value) is not None