Exemplo n.º 1
0
def test_float_property_invalid(value):
    int_prop = FloatProperty()
    with pytest.raises(ValueError):
        int_prop.clean(value)
Exemplo n.º 2
0
def test_float_property_valid(value):
    int_prop = FloatProperty()
    assert int_prop.clean(value) is not None