コード例 #1
0
def test_float_property_invalid(value):
    int_prop = FloatProperty()
    with pytest.raises(ValueError):
        int_prop.clean(value)
コード例 #2
0
def test_float_property_valid(value):
    int_prop = FloatProperty()
    assert int_prop.clean(value) is not None