예제 #1
0
 def setUp(self):
     self.permission = Permission.build_permission("admin_menu")
     self.role = Role.build_role(Role.ADMIN, self.permission.key())
예제 #2
0
 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))