def setUp(self): self.permission = Permission.build_permission("admin_menu") self.role = Role.build_role(Role.ADMIN, self.permission.key())
def test_roles_have_different_permissions(self): self.admin_role = Role.build_role(Role.ADMIN) self.assertFalse(self.admin_role.has_permission(self.permission.name))