def test_boolean_property_invalid(value): bool_prop = BooleanProperty() with pytest.raises(ValueError): bool_prop.clean(value)
def test_boolean_property_valid(value): bool_prop = BooleanProperty() assert bool_prop.clean(value) is not None