Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str Str Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore TupleLoad Call NameLoad Str Str Str Call NameLoad Str Str Str Call NameLoad Str Str Str Call NameLoad Str Str Str Call NameLoad Str Str Str Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore DictComp NameLoad Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Dict Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Continue Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return BinOpAdd Str Call NameLoad Str keyword Dict Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ unicode_literals N/A collections N/A unittest django.contrib.auth get_user_model django.core.urlresolvers reverse rest_framework status rest_framework test nodeconductor.structure serializers nodeconductor.structure views nodeconductor.structure.models ProjectRole CustomerRole ProjectGroupRole nodeconductor.structure.tests factories N/A User N/A get_user_model N/A TestRole N/A N/A collections namedtuple TestRole N/A user project role ProjectPermissionViewSetTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self view_set N/A N/A views ProjectPermissionViewSet N/A test_cannot_modify_permission_in_place N/A N/A self N/A N/A N/A N/A N/A self assertNotIn PUT N/A N/A self view_set allowed_methods N/A N/A N/A self assertNotIn PATCH N/A N/A self view_set allowed_methods N/A test_project_group_permission_serializer_is_used N/A N/A self N/A N/A N/A N/A N/A self assertIs N/A serializers ProjectPermissionSerializer N/A N/A N/A self view_set get_serializer_class N/A N/A ProjectPermissionSerializerTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self serializer N/A N/A serializers ProjectPermissionSerializer N/A test_payload_has_required_fields N/A N/A self N/A N/A N/A expected_fields N/A url role project project_name pk project_uuid user user_full_name user_native_name user_username user_uuid user_email N/A N/A N/A self assertItemsEqual expected_fields N/A N/A N/A N/A self serializer fields keys N/A N/A ProjectPermissionApiPermissionTest N/A N/A test APITransactionTestCase N/A N/A all_roles N/A N/A TestRole admin1 project11 admin N/A TestRole admin2 project11 admin N/A TestRole admin3 project12 admin N/A TestRole admin4 project13 admin N/A TestRole admin5 project21 admin N/A role_map N/A admin manager N/A ProjectRole ADMINISTRATOR N/A ProjectRole MANAGER setUp N/A N/A self N/A N/A N/A customers N/A customer1 customer2 N/A N/A factories CustomerFactory N/A N/A factories CustomerFactory N/A project_groups N/A group11 group12 group21 N/A N/A factories ProjectGroupFactory customer N/A customers N/A customer1 N/A N/A factories ProjectGroupFactory customer N/A customers N/A customer1 N/A N/A factories ProjectGroupFactory customer N/A customers N/A customer2 N/A N/A self projects N/A project11 project12 project13 project21 N/A N/A factories ProjectFactory customer N/A customers N/A customer1 N/A N/A factories ProjectFactory customer N/A customers N/A customer1 N/A N/A factories ProjectFactory customer N/A customers N/A customer1 N/A N/A factories ProjectFactory customer N/A customers N/A customer2 N/A N/A N/A N/A N/A project_groups N/A group11 projects add N/A N/A self projects N/A project11 N/A N/A self projects N/A project12 N/A N/A N/A N/A N/A project_groups N/A group12 projects add N/A N/A self projects N/A project13 N/A N/A self projects N/A project12 N/A N/A N/A N/A N/A project_groups N/A group21 projects add N/A N/A self projects N/A project21 N/A N/A self users N/A owner1 owner2 manager1 manager2 manager3 admin1 admin2 admin3 admin4 admin5 no_role staff N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory N/A N/A factories UserFactory is_staff True N/A N/A N/A N/A customers N/A customer1 add_user N/A N/A self users N/A owner1 N/A CustomerRole OWNER N/A N/A N/A N/A customers N/A customer2 add_user N/A N/A self users N/A owner2 N/A CustomerRole OWNER N/A N/A N/A N/A project_groups N/A group11 add_user N/A N/A self users N/A manager1 N/A ProjectGroupRole MANAGER N/A N/A N/A N/A project_groups N/A group12 add_user N/A N/A self users N/A manager2 N/A ProjectGroupRole MANAGER N/A N/A N/A N/A project_groups N/A group21 add_user N/A N/A self users N/A manager3 N/A ProjectGroupRole MANAGER N/A N/A user project role N/A self all_roles N/A N/A N/A N/A N/A N/A self projects N/A project add_user N/A N/A self users N/A user N/A ProjectRole ADMINISTRATOR N/A test_anonymous_user_cannot_list_project_permissions N/A N/A self N/A N/A N/A response N/A N/A N/A self client get N/A reverse project_permission-list N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_401_UNAUTHORIZED N/A test_user_cannot_list_roles_of_project_he_is_not_affiliated N/A N/A self N/A N/A N/A project N/A N/A N/A self projects keys N/A N/A N/A N/A self assert_user_access_to_permission_list user no_role project project should_see False N/A test_customer_owner_can_list_roles_of_his_customers_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_list user owner1 project project11 should_see True N/A N/A N/A self assert_user_access_to_permission_list user owner1 project project12 should_see True N/A N/A N/A self assert_user_access_to_permission_list user owner1 project project13 should_see True N/A test_customer_owner_cannot_list_roles_of_another_customers_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_list user owner1 project project21 should_see False N/A test_project_group_manager_can_list_roles_of_his_project_groups_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_list user manager2 project project12 should_see True N/A N/A N/A self assert_user_access_to_permission_list user manager2 project project13 should_see True N/A test_project_group_manager_cannot_list_roles_of_another_project_groups_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_list user manager1 project project13 should_see False N/A N/A N/A self assert_user_access_to_permission_list user manager1 project project21 should_see False N/A test_project_admin_can_list_roles_of_his_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_list user admin1 project project11 should_see True N/A test_project_admin_cannot_list_roles_of_another_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_list user admin2 project project12 should_see False N/A N/A N/A self assert_user_access_to_permission_list user admin2 project project13 should_see False N/A N/A N/A self assert_user_access_to_permission_list user admin2 project project21 should_see False N/A test_staff_can_list_roles_of_any_project N/A N/A self N/A N/A N/A project N/A N/A N/A self projects keys N/A N/A N/A N/A self assert_user_access_to_permission_list user staff project project should_see True N/A assert_user_access_to_permission_list N/A N/A self user project should_see N/A N/A N/A N/A N/A N/A self client force_authenticate user N/A N/A self users N/A user N/A response N/A N/A N/A self client get N/A reverse project_permission-list N/A N/A N/A self assertEqual N/A response status_code N/A status HTTP_200_OK N/A expected_urls N/A r N/A N/A self _get_permission_url r N/A r N/A self all_roles N/A N/A r project project N/A actual_urls N/A set N/A N/A role N/A url N/A role N/A response data N/A N/A role role_url N/A N/A expected_urls items N/A N/A should_see N/A N/A N/A N/A self assertIn role_url actual_urls N/A N/A {0} user does not see privilege he is supposed to see: {1} format user role N/A N/A N/A N/A self assertNotIn role_url actual_urls N/A N/A {0} user sees privilege he is not supposed to see: {1} format user role N/A test_customer_owner_can_grant_new_role_within_his_customers_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user owner1 affected_user no_role affected_project project11 expected_status N/A status HTTP_201_CREATED N/A test_customer_owner_cannot_grant_existing_role_within_his_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user owner1 affected_user admin1 affected_project project11 expected_status N/A status HTTP_400_BAD_REQUEST expected_payload N/A non_field_errors N/A The fields project, user, role must make a unique set. N/A test_customer_owner_cannot_grant_role_within_another_customers_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user owner1 affected_user no_role affected_project project21 expected_status N/A status HTTP_400_BAD_REQUEST expected_payload N/A project N/A Invalid hyperlink - Object does not exist. N/A test_project_group_manager_can_grant_new_role_within_his_project_groups_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user manager1 affected_user no_role affected_project project11 expected_status N/A status HTTP_201_CREATED N/A test_project_group_manager_cannot_grant_existing_role_within_his_project_groups_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user manager1 affected_user admin1 affected_project project11 expected_status N/A status HTTP_400_BAD_REQUEST expected_payload N/A non_field_errors N/A The fields project, user, role must make a unique set. N/A test_project_group_manager_cannot_grant_role_within_another_project_groups_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user manager1 affected_user no_role affected_project project13 expected_status N/A status HTTP_400_BAD_REQUEST expected_payload N/A project N/A Invalid hyperlink - Object does not exist. N/A test_project_admin_cannot_grant_new_role_within_his_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user admin1 affected_user no_role affected_project project11 expected_status N/A status HTTP_403_FORBIDDEN expected_payload N/A detail You do not have permission to perform this action. N/A test_project_admin_cannot_grant_existing_role_within_his_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user admin1 affected_user admin1 affected_project project11 expected_status N/A status HTTP_400_BAD_REQUEST expected_payload N/A non_field_errors N/A The fields project, user, role must make a unique set. N/A test_project_admin_cannot_grant_role_within_another_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user admin1 affected_user no_role affected_project project13 expected_status N/A status HTTP_400_BAD_REQUEST expected_payload N/A project N/A Invalid hyperlink - Object does not exist. N/A test_staff_can_grant_new_role_within_any_project N/A N/A self N/A N/A N/A project N/A N/A N/A self projects keys N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user staff affected_user no_role affected_project project expected_status N/A status HTTP_201_CREATED N/A test_staff_cannot_grant_new_role_if_customer_quota_were_exceeded N/A N/A self N/A N/A N/A project project11 N/A N/A N/A N/A N/A N/A self projects N/A project customer set_quota_limit nc_user_count 0 N/A N/A N/A self assert_user_access_to_permission_granting login_user staff affected_user no_role affected_project project expected_status N/A status HTTP_409_CONFLICT N/A test_staff_cannot_grant_existing_role_within_any_project N/A N/A self N/A N/A N/A N/A user project _ N/A self all_roles N/A N/A N/A N/A self assert_user_access_to_permission_granting login_user staff affected_user user affected_project project expected_status N/A status HTTP_400_BAD_REQUEST expected_payload N/A non_field_errors N/A The fields project, user, role must make a unique set. N/A assert_user_access_to_permission_granting N/A N/A self login_user affected_user affected_project expected_status expected_payload N/A None N/A N/A N/A N/A N/A self client force_authenticate user N/A N/A self users N/A login_user N/A data N/A project user role N/A N/A N/A factories ProjectFactory get_url N/A N/A self projects N/A affected_project N/A N/A N/A factories UserFactory get_url N/A N/A self users N/A affected_user admin N/A response N/A N/A N/A self client post N/A reverse project_permission-list data N/A N/A N/A self assertEqual N/A response status_code expected_status N/A N/A expected_payload None N/A N/A N/A N/A self assertDictContainsSubset expected_payload N/A response data N/A test_customer_owner_can_revoke_role_within_his_customers_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_revocation login_user owner1 affected_user admin1 affected_project project11 expected_status N/A status HTTP_204_NO_CONTENT N/A test_customer_owner_cannot_revoke_role_within_another_customers_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_revocation login_user owner1 affected_user admin5 affected_project project21 expected_status N/A status HTTP_404_NOT_FOUND N/A test_project_group_manager_can_revoke_role_within_his_project_groups_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_revocation login_user manager1 affected_user admin1 affected_project project11 expected_status N/A status HTTP_204_NO_CONTENT N/A test_project_group_manager_cannot_revoke_role_within_another_project_groups_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_revocation login_user manager1 affected_user admin5 affected_project project21 expected_status N/A status HTTP_404_NOT_FOUND N/A test_project_admin_cannot_revoke_role_within_his_project N/A N/A self N/A N/A N/A N/A N/A self assert_user_access_to_permission_revocation login_user admin1 affected_user admin2 affected_project project11 expected_status N/A status HTTP_403_FORBIDDEN expected_payload N/A detail You do not have permission to perform this action. N/A test_project_admin_cannot_revoke_role_within_within_another_project N/A N/A self N/A N/A N/A N/A user project _ N/A self all_roles N/A N/A N/A project project11 N/A N/A N/A N/A N/A self assert_user_access_to_permission_revocation login_user admin1 affected_user admin5 affected_project project21 expected_status N/A status HTTP_404_NOT_FOUND N/A test_staff_can_revoke_role_within_any_project N/A N/A self N/A N/A N/A N/A user project _ N/A self all_roles N/A N/A N/A N/A self assert_user_access_to_permission_revocation login_user staff affected_user user affected_project project expected_status N/A status HTTP_204_NO_CONTENT N/A assert_user_access_to_permission_revocation N/A N/A self login_user affected_user affected_project expected_status expected_payload N/A None N/A N/A N/A N/A N/A self client force_authenticate user N/A N/A self users N/A login_user N/A url N/A N/A self _get_permission_url affected_user affected_project admin N/A response N/A N/A N/A self client delete url N/A N/A N/A self assertEqual N/A response status_code expected_status N/A N/A expected_payload None N/A N/A N/A N/A self assertDictContainsSubset expected_payload N/A response data N/A _get_permission_url N/A N/A self user project role N/A N/A N/A permission N/A N/A N/A N/A N/A User groups through objects get user N/A N/A self users N/A user group__projectrole__role_type N/A N/A self role_map N/A role group__projectrole__project N/A N/A self projects N/A project N/A N/A http://testserver N/A reverse project_permission-detail kwargs N/A pk N/A permission pk N/A N/A