Module ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Dict AttributeLoad NameLoad attr NameLoad ListLoad Str Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Dict AttributeLoad NameLoad attr NameLoad ListLoad Str Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Dict AttributeLoad NameLoad attr NameLoad ListLoad Str Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Dict AttributeLoad NameLoad attr NameLoad ListLoad Str Str ListLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad ListLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Dict AttributeLoad NameLoad attr NameLoad ListLoad Str Str ListLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Call NameLoad ListLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list NameLoad
N/A __future__ unicode_literals guardian.testapp.models Mixed ReverseMixed guardian.testapp.models Project guardian.testapp.models ProjectGroupObjectPermission guardian.testapp.models ProjectUserObjectPermission django.contrib.auth.models Group Permission django.test TestCase guardian.compat get_user_model guardian.shortcuts assign_perm guardian.shortcuts get_groups_with_perms guardian.shortcuts get_objects_for_group guardian.shortcuts get_objects_for_user guardian.shortcuts get_users_with_perms guardian.shortcuts remove_perm guardian.testapp.tests.conf skipUnlessTestApp N/A User N/A get_user_model TestDirectUserPermissions N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self joe N/A N/A N/A User objects create_user joe joe@example.com foobar N/A N/A self project N/A N/A N/A Project objects create name Foobar N/A get_perm N/A N/A self codename N/A N/A N/A filters N/A content_type__app_label codename testapp codename N/A N/A N/A N/A Permission objects get filters N/A test_after_perm_is_created_without_shortcut N/A N/A self N/A N/A N/A perm N/A N/A self get_perm add_project N/A N/A N/A N/A ProjectUserObjectPermission objects create user N/A self joe permission perm content_object N/A self project N/A N/A N/A self assertTrue N/A N/A N/A self joe has_perm add_project N/A self project N/A test_assign_perm N/A N/A self N/A N/A N/A N/A assign_perm add_project N/A self joe N/A self project N/A filters N/A content_object permission__codename user N/A self project add_project N/A self joe N/A result N/A N/A N/A N/A N/A ProjectUserObjectPermission objects filter filters count N/A N/A N/A self assertEqual result 1 N/A test_remove_perm N/A N/A self N/A N/A N/A N/A assign_perm add_project N/A self joe N/A self project N/A filters N/A content_object permission__codename user N/A self project add_project N/A self joe N/A result N/A N/A N/A N/A N/A ProjectUserObjectPermission objects filter filters count N/A N/A N/A self assertEqual result 1 N/A N/A remove_perm add_project N/A self joe N/A self project N/A result N/A N/A N/A N/A N/A ProjectUserObjectPermission objects filter filters count N/A N/A N/A self assertEqual result 0 N/A test_get_users_with_perms N/A N/A self N/A N/A N/A N/A N/A N/A User objects create_user john john@foobar.com john N/A jane N/A N/A N/A User objects create_user jane jane@foobar.com jane N/A N/A assign_perm add_project N/A self joe N/A self project N/A N/A assign_perm change_project N/A self joe N/A self project N/A N/A assign_perm change_project jane N/A self project N/A N/A N/A self assertEqual N/A get_users_with_perms N/A self project attach_perms True N/A N/A self joe jane N/A add_project change_project N/A change_project N/A test_get_users_with_perms_plus_groups N/A N/A self N/A N/A N/A N/A N/A N/A User objects create_user john john@foobar.com john N/A jane N/A N/A N/A User objects create_user jane jane@foobar.com jane N/A group N/A N/A N/A Group objects create name devs N/A N/A N/A N/A N/A self joe groups add group N/A N/A assign_perm add_project N/A self joe N/A self project N/A N/A assign_perm change_project group N/A self project N/A N/A assign_perm change_project jane N/A self project N/A N/A N/A self assertEqual N/A get_users_with_perms N/A self project attach_perms True N/A N/A self joe jane N/A add_project change_project N/A change_project N/A test_get_objects_for_user N/A N/A self N/A N/A N/A foo N/A N/A N/A Project objects create name foo N/A bar N/A N/A N/A Project objects create name bar N/A N/A assign_perm add_project N/A self joe foo N/A N/A assign_perm add_project N/A self joe bar N/A N/A assign_perm change_project N/A self joe bar N/A result N/A get_objects_for_user N/A self joe testapp.add_project N/A N/A N/A self assertEqual N/A sorted N/A N/A p pk N/A p result N/A sorted N/A N/A foo pk N/A bar pk N/A test_get_all_permissions N/A N/A self N/A N/A N/A foo N/A N/A N/A Project objects create name foo N/A N/A assign_perm add_project N/A self joe foo N/A N/A assign_perm change_project N/A self joe foo N/A result N/A N/A N/A self joe get_all_permissions foo N/A N/A N/A self assertEqual result N/A set N/A add_project change_project N/A test_get_all_permissions_no_object N/A N/A self N/A N/A N/A foo N/A N/A N/A Project objects create name foo N/A N/A assign_perm add_project N/A self joe foo N/A N/A assign_perm change_project N/A self joe foo N/A result N/A N/A N/A self joe get_all_permissions N/A N/A N/A self assertEqual result N/A set N/A N/A skipUnlessTestApp TestDirectGroupPermissions N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self joe N/A N/A N/A User objects create_user joe joe@example.com foobar N/A N/A self group N/A N/A N/A Group objects create name admins N/A N/A N/A N/A N/A self joe groups add N/A self group N/A N/A self project N/A N/A N/A Project objects create name Foobar N/A get_perm N/A N/A self codename N/A N/A N/A filters N/A content_type__app_label codename testapp codename N/A N/A N/A N/A Permission objects get filters N/A test_after_perm_is_created_without_shortcut N/A N/A self N/A N/A N/A perm N/A N/A self get_perm add_project N/A N/A N/A N/A ProjectGroupObjectPermission objects create group N/A self group permission perm content_object N/A self project N/A N/A N/A self assertTrue N/A N/A N/A self joe has_perm add_project N/A self project N/A test_assign_perm N/A N/A self N/A N/A N/A N/A assign_perm add_project N/A self group N/A self project N/A filters N/A content_object permission__codename group N/A self project add_project N/A self group N/A result N/A N/A N/A N/A N/A ProjectGroupObjectPermission objects filter filters count N/A N/A N/A self assertEqual result 1 N/A test_remove_perm N/A N/A self N/A N/A N/A N/A assign_perm add_project N/A self group N/A self project N/A filters N/A content_object permission__codename group N/A self project add_project N/A self group N/A result N/A N/A N/A N/A N/A ProjectGroupObjectPermission objects filter filters count N/A N/A N/A self assertEqual result 1 N/A N/A remove_perm add_project N/A self group N/A self project N/A result N/A N/A N/A N/A N/A ProjectGroupObjectPermission objects filter filters count N/A N/A N/A self assertEqual result 0 N/A test_get_groups_with_perms N/A N/A self N/A N/A N/A N/A N/A N/A Group objects create name managers N/A devs N/A N/A N/A Group objects create name devs N/A N/A assign_perm add_project N/A self group N/A self project N/A N/A assign_perm change_project N/A self group N/A self project N/A N/A assign_perm change_project devs N/A self project N/A N/A N/A self assertEqual N/A get_groups_with_perms N/A self project attach_perms True N/A N/A self group devs N/A add_project change_project N/A change_project N/A test_get_objects_for_group N/A N/A self N/A N/A N/A foo N/A N/A N/A Project objects create name foo N/A bar N/A N/A N/A Project objects create name bar N/A N/A assign_perm add_project N/A self group foo N/A N/A assign_perm add_project N/A self group bar N/A N/A assign_perm change_project N/A self group bar N/A result N/A get_objects_for_group N/A self group testapp.add_project N/A N/A N/A self assertEqual N/A sorted N/A N/A p pk N/A p result N/A sorted N/A N/A foo pk N/A bar pk N/A N/A skipUnlessTestApp TestMixedDirectAndGenericObjectPermission N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self joe N/A N/A N/A User objects create_user joe joe@example.com foobar N/A N/A self group N/A N/A N/A Group objects create name admins N/A N/A N/A N/A N/A self joe groups add N/A self group N/A N/A self mixed N/A N/A N/A Mixed objects create name Foobar N/A N/A self reverse_mixed N/A N/A N/A ReverseMixed objects create name Foobar N/A test_get_users_with_perms_plus_groups N/A N/A self N/A N/A N/A N/A N/A N/A User objects create_user john john@foobar.com john N/A jane N/A N/A N/A User objects create_user jane jane@foobar.com jane N/A group N/A N/A N/A Group objects create name devs N/A N/A N/A N/A N/A self joe groups add group N/A N/A assign_perm add_mixed N/A self joe N/A self mixed N/A N/A assign_perm change_mixed group N/A self mixed N/A N/A assign_perm change_mixed jane N/A self mixed N/A N/A N/A self assertEqual N/A get_users_with_perms N/A self mixed attach_perms True N/A N/A self joe jane N/A add_mixed change_mixed N/A change_mixed N/A result N/A get_objects_for_user N/A self joe testapp.add_mixed N/A N/A N/A self assertEqual N/A sorted N/A N/A p pk N/A p result N/A sorted N/A N/A N/A self mixed pk N/A test_get_users_with_perms_plus_groups_reverse_mixed N/A N/A self N/A N/A N/A N/A N/A N/A User objects create_user john john@foobar.com john N/A jane N/A N/A N/A User objects create_user jane jane@foobar.com jane N/A group N/A N/A N/A Group objects create name devs N/A N/A N/A N/A N/A self joe groups add group N/A N/A assign_perm add_reversemixed N/A self joe N/A self reverse_mixed N/A N/A assign_perm change_reversemixed group N/A self reverse_mixed N/A N/A assign_perm change_reversemixed jane N/A self reverse_mixed N/A N/A N/A self assertEqual N/A get_users_with_perms N/A self reverse_mixed attach_perms True N/A N/A self joe jane N/A add_reversemixed change_reversemixed N/A change_reversemixed N/A result N/A get_objects_for_user N/A self joe testapp.add_reversemixed N/A N/A N/A self assertEqual N/A sorted N/A N/A p pk N/A p result N/A sorted N/A N/A N/A self reverse_mixed pk N/A N/A skipUnlessTestApp