def test_item(self): acl = self.dummy_acl() item = acl(request="foo")["item-id"] assert item.id == "item-id" assert isinstance(item, acl.item_model)
def test_inherit_acl(self): acl = self.dummy_acl() item = acl(request="foo")["name"] assert getattr(item, "__acl__", None) == None
def test_default_acl(self): acl = self.dummy_acl() obj = acl(request="foo") assert obj.__acl__ == (("Allow", "g:admin", ALL_PERMISSIONS),)
def test_item(self): acl = self.dummy_acl() item = acl(request='foo')['item-id'] assert item.id == 'item-id' assert isinstance(item, acl.item_model)
def test_inherit_acl(self): acl = self.dummy_acl() item = acl(request='foo')['name'] assert getattr(item, '__acl__', None) == None
def test_default_acl(self): acl = self.dummy_acl() obj = acl(request='foo') assert obj.__acl__ == (('Allow', 'g:admin', ALL_PERMISSIONS),)