def test_policy_value_getset_valueerror(self, value): with pytest.raises(ValueError): pl = PolicyValue(0) pl.value = value
def test_policy_value_value_getset(self, value): pl = PolicyValue(value) assert id(pl) is not None assert pl.value == value pl.value = value + 10 assert pl.value == value + 10