def it_rejects_more_than_one_argument(): with expect.raises(ValueError): decorators.attr(foo=1, bar=2)
def it_rejects_zero_arguments(): with expect.raises(ValueError): decorators.attr()