Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Dict Str Str NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A django.test TestCase django.contrib.auth get_user_model model_mommy mommy rolepermissions.exceptions RoleDoesNotExist rolepermissions.roles RolesManager AbstractUserRole rolepermissions.shortcuts get_user_role grant_permission revoke_permission retrieve_role available_perm_status rolepermissions.verifications has_permission ShoRole1 N/A AbstractUserRole N/A N/A available_permissions N/A permission1 permission2 True True N/A ShoRole2 N/A AbstractUserRole N/A N/A available_permissions N/A permission3 permission4 True False N/A ShoRole3 N/A AbstractUserRole N/A N/A role_name sho_new_name N/A available_permissions N/A permission5 permission6 False False N/A AvailablePermStatusTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self user N/A N/A mommy make N/A get_user_model N/A N/A self user_role N/A N/A ShoRole2 assign_role_to_user N/A self user N/A test_permission_hash N/A N/A self N/A N/A N/A perm_hash N/A available_perm_status N/A self user N/A N/A N/A self assertTrue N/A perm_hash N/A permission3 N/A N/A N/A self assertFalse N/A perm_hash N/A permission4 N/A test_permission_hash_after_modification N/A N/A self N/A N/A N/A N/A revoke_permission N/A self user permission3 N/A perm_hash N/A available_perm_status N/A self user N/A N/A N/A self assertFalse N/A perm_hash N/A permission3 N/A N/A N/A self assertFalse N/A perm_hash N/A permission4 N/A N/A GetUserRoleTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self user N/A N/A mommy make N/A get_user_model N/A test_get_user_role N/A N/A self N/A N/A N/A user N/A self user N/A user_role N/A N/A ShoRole1 assign_role_to_user user N/A N/A N/A self assertEquals N/A get_user_role user ShoRole1 N/A test_get_user_role_after_role_change N/A N/A self N/A N/A N/A user N/A self user N/A user_role N/A N/A ShoRole1 assign_role_to_user user N/A user_role N/A N/A ShoRole3 assign_role_to_user user N/A N/A N/A self assertEquals N/A get_user_role user ShoRole3 N/A test_user_without_role N/A N/A self N/A N/A N/A user N/A self user N/A N/A N/A self assertIsNone N/A get_user_role user N/A tearDown N/A N/A self N/A N/A N/A N/A RolesManager _roles N/A N/A N/A GrantPermissionTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self user N/A N/A mommy make N/A get_user_model N/A N/A self user_role N/A N/A ShoRole2 assign_role_to_user N/A self user N/A test_grant_permission N/A N/A self N/A N/A N/A user N/A self user N/A N/A N/A self assertTrue N/A grant_permission user permission4 N/A N/A N/A self assertTrue N/A has_permission user permission4 N/A test_grat_granted_permission N/A N/A self N/A N/A N/A user N/A self user N/A N/A N/A self assertTrue N/A grant_permission user permission3 N/A N/A N/A self assertTrue N/A has_permission user permission3 N/A test_not_allowed_permission N/A N/A self N/A N/A N/A user N/A self user N/A N/A N/A self assertFalse N/A grant_permission user permission1 N/A N/A RevokePermissionTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self user N/A N/A mommy make N/A get_user_model N/A N/A self user_role N/A N/A ShoRole2 assign_role_to_user N/A self user N/A test_revoke_permission N/A N/A self N/A N/A N/A user N/A self user N/A N/A N/A self assertTrue N/A revoke_permission user permission3 N/A N/A N/A self assertFalse N/A has_permission user permission3 N/A test_revoke_revoked_permission N/A N/A self N/A N/A N/A user N/A self user N/A N/A N/A self assertTrue N/A revoke_permission user permission4 N/A N/A N/A self assertFalse N/A has_permission user permission4 N/A test_not_allowed_permission N/A N/A self N/A N/A N/A user N/A self user N/A N/A N/A self assertFalse N/A revoke_permission user permission1 N/A N/A RetrieveRole N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A test_retrive_role1 N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A retrieve_role sho_role1 ShoRole1 N/A test_retrive_role2 N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A retrieve_role sho_role2 ShoRole2 N/A test_retrive_role3 N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A retrieve_role sho_new_name ShoRole3 N/A test_retrieve_unknowun_role N/A N/A self N/A N/A N/A role N/A retrieve_role unknowun_role N/A N/A N/A self assertIsNone role N/A N/A