class Foo(object):
@property
def bar(self):
pass
@bar.setter
def bar(self, value):
pass
def do_bar(foo):
foo.bar = 3
def test_bar_property():
foo = Foo()
allow(foo).bar
do_bar(foo)
Fails with AttributeError. Besides, it is not possible to validate what was the value passed to the setter (with_args fails cannot be used with properties).