Module ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore ListLoad Dict Str Str Str ListLoad Dict Str Str Str ListLoad NameLoad Dict Str Str Str ListLoad Dict Str Str Str ListLoad NameLoad Dict Str Str Str ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Dict Str ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict Str ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad NameLoad decorator_list decorator_list Assign NameStore TupleLoad Str
N/A django.contrib.auth.models User Group django.contrib.contenttypes.models ContentType rubberstamp.tests.base RubberStampTestCase rubberstamp.models AppPermission rubberstamp.tests.testapp.models TestModel ViewTest N/A RubberStampTestCase N/A N/A fixtures N/A users.json view_objects.json view_permissions.json N/A urls rubberstamp.tests.testurls setUp N/A N/A self N/A N/A N/A N/A self user N/A N/A N/A User objects get username user N/A test_app_list N/A N/A self N/A N/A N/A The root view shows a list of apps and the permissions they define. N/A xr N/A N/A N/A self client get / N/A N/A N/A self assertEqual N/A xr status_code 302 N/A N/A N/A N/A self client login username user password N/A xr N/A N/A N/A self client get / N/A N/A N/A self assertEqual N/A xr status_code 302 N/A N/A N/A N/A AppPermission objects assign rubberstamp.manage.rubberstamp.apppermission N/A self user N/A r N/A N/A N/A self client get / N/A N/A N/A self assertEqual N/A r status_code 200 N/A ap_ct N/A N/A N/A ContentType objects get app_label rubberstamp model apppermission N/A tm_ct N/A N/A N/A ContentType objects get app_label testapp model testmodel N/A otm_ct N/A N/A N/A ContentType objects get app_label testapp model othertestmodel N/A apps N/A N/A label perms rubberstamp N/A N/A codename types manage N/A ap_ct N/A label perms testapp N/A N/A codename types have N/A tm_ct N/A codename types use N/A otm_ct tm_ct N/A N/A N/A self assertEqual N/A repr N/A N/A r context N/A apps N/A repr apps N/A test_type_to_user N/A N/A self N/A N/A N/A Assign a permission for a type to a user. N/A xr N/A N/A N/A self client get /testapp.use.testapp.nomodel/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A N/A N/A N/A self client login username user password N/A xr N/A N/A N/A self client get /testapp.use.testapp.nomodel/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A N/A N/A N/A AppPermission objects assign rubberstamp.manage.rubberstamp.apppermission N/A self user N/A xr N/A N/A N/A self client get /testapp.use.testapp.nomodel/ N/A N/A N/A self assertEqual N/A xr status_code 404 N/A xr N/A N/A N/A self client get /testapp.use.auth.user/ N/A N/A N/A self assertEqual N/A xr status_code 404 N/A r N/A N/A N/A self client get /testapp.use.testapp.testmodel/ N/A N/A N/A self assertEqual N/A r status_code 200 N/A assign_form N/A N/A r context N/A assign_form N/A N/A N/A self assertFalse N/A assign_form is_bound N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A N/A r context N/A objects N/A post_dict N/A users N/A 4 5 N/A rp N/A N/A N/A self client post /testapp.use.testapp.testmodel/ post_dict N/A N/A N/A self assertEqual N/A rp status_code 200 N/A assign_form N/A N/A rp context N/A assign_form N/A N/A N/A self assertTrue N/A N/A assign_form is_valid N/A user4 N/A N/A N/A User objects get pk 4 N/A N/A N/A self assertTrue N/A N/A user4 has_perm testapp.use.testapp.testmodel N/A test_type_to_group N/A N/A self N/A N/A N/A Assign a permission for a type to a group. N/A N/A N/A N/A AppPermission objects assign rubberstamp.manage.rubberstamp.apppermission N/A self user N/A N/A N/A N/A self client login username user password N/A post_dict N/A groups N/A 1 N/A rp N/A N/A N/A self client post /testapp.use.testapp.testmodel/ post_dict N/A N/A N/A self assertEqual N/A rp status_code 200 N/A assign_form N/A N/A rp context N/A assign_form N/A N/A N/A self assertTrue N/A N/A assign_form is_valid N/A user4 N/A N/A N/A User objects get pk 4 N/A N/A N/A self assertFalse N/A N/A user4 has_perm testapp.use.testapp.testmodel N/A group N/A N/A N/A Group objects get pk 1 N/A N/A N/A N/A user4 groups add group N/A user4 N/A N/A N/A User objects get pk 4 N/A N/A N/A self assertTrue N/A N/A user4 has_perm testapp.use.testapp.testmodel N/A test_type_remove N/A N/A self N/A N/A N/A Remove (un-assign) permissions from a user or group. N/A N/A N/A N/A AppPermission objects assign rubberstamp.manage.rubberstamp.apppermission N/A self user N/A N/A N/A N/A self client login username user password N/A user4 N/A N/A N/A User objects get pk 4 N/A N/A N/A N/A AppPermission objects assign testapp.use.testapp.testmodel user4 N/A N/A N/A self assertTrue N/A N/A user4 has_perm testapp.use.testapp.testmodel N/A rp N/A N/A N/A self client post /testapp.use.testapp.testmodel/ N/A N/A N/A N/A self assertEqual N/A rp status_code 200 N/A assign_form N/A N/A rp context N/A assign_form N/A N/A N/A self assertTrue N/A N/A assign_form is_valid N/A user4 N/A N/A N/A User objects get pk 4 N/A N/A N/A self assertFalse N/A N/A user4 has_perm testapp.use.testapp.testmodel N/A user5 N/A N/A N/A User objects get pk 5 N/A group N/A N/A N/A Group objects get pk 1 N/A N/A N/A N/A AppPermission objects assign testapp.use.testapp.testmodel group N/A N/A N/A N/A user5 groups add group N/A N/A N/A self assertTrue N/A N/A user5 has_perm testapp.use.testapp.testmodel N/A rp N/A N/A N/A self client post /testapp.use.testapp.testmodel/ N/A N/A user5 N/A N/A N/A User objects get pk 5 N/A N/A N/A self assertFalse N/A N/A user5 has_perm testapp.use.testapp.testmodel N/A test_object_list N/A N/A self N/A N/A N/A Given a permission and type, return a list of objects of that type. N/A xr N/A N/A N/A self client get /testapp.use.testapp.nomodel/objects/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A N/A N/A N/A self client login username user password N/A xr N/A N/A N/A self client get /testapp.use.testapp.nomodel/objects/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A N/A N/A N/A AppPermission objects assign rubberstamp.manage.rubberstamp.apppermission N/A self user N/A xr N/A N/A N/A self client get /testapp.use.testapp.nomodel/objects/ N/A N/A N/A self assertEqual N/A xr status_code 404 N/A xr N/A N/A N/A self client get /testapp.use.auth.user/objects/ N/A N/A N/A self assertEqual N/A xr status_code 404 N/A r N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/ N/A N/A N/A self assertEqual N/A r status_code 200 N/A objects N/A N/A r context N/A objects N/A N/A N/A self assertEqual N/A len objects 2 N/A test_object_to_user N/A N/A self N/A N/A N/A Assign a permission for an object to a user. N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/100/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/1/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A N/A N/A N/A self client login username user password N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/100/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/1/ N/A N/A N/A self assertEqual N/A xr status_code 302 N/A N/A N/A N/A AppPermission objects assign rubberstamp.manage.rubberstamp.apppermission N/A self user N/A xr N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/100/ N/A N/A N/A self assertEqual N/A xr status_code 404 N/A r N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/1/ N/A N/A N/A self assertEqual N/A r status_code 200 N/A assign_form N/A N/A r context N/A assign_form N/A N/A N/A self assertFalse N/A assign_form is_bound N/A N/A N/A self assertRaises KeyError N/A N/A N/A N/A N/A N/A r context N/A objects N/A post_dict N/A users N/A 4 5 N/A rp N/A N/A N/A self client post /testapp.use.testapp.testmodel/objects/1/ post_dict N/A N/A N/A self assertEqual N/A rp status_code 200 N/A assign_form N/A N/A rp context N/A assign_form N/A N/A N/A self assertTrue N/A N/A assign_form is_valid N/A user4 N/A N/A N/A User objects get pk 4 N/A obj N/A N/A N/A TestModel objects get pk 1 N/A N/A N/A self assertTrue N/A N/A user4 has_perm testapp.use.testapp.testmodel obj obj N/A test_form_preselection N/A N/A self N/A N/A N/A N/A N/A N/A AppPermission objects assign rubberstamp.manage.rubberstamp.apppermission N/A self user N/A N/A N/A N/A self client login username user password N/A r N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/1/ N/A form N/A N/A r context N/A assign_form N/A N/A N/A self assertEqual N/A N/A form initial N/A users N/A N/A user4 N/A N/A N/A User objects get pk 4 N/A obj N/A N/A N/A TestModel objects get pk 1 N/A N/A N/A N/A AppPermission objects assign testapp.use.testapp.testmodel user4 N/A r N/A N/A N/A self client get /testapp.use.testapp.testmodel/ N/A form N/A N/A r context N/A assign_form N/A N/A N/A self assertEqual N/A N/A form initial N/A users N/A user4 N/A r N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/1/ N/A form N/A N/A r context N/A assign_form N/A N/A N/A self assertEqual N/A N/A form initial N/A users N/A N/A N/A N/A N/A AppPermission objects assign testapp.use.testapp.testmodel user4 obj obj N/A r N/A N/A N/A self client get /testapp.use.testapp.testmodel/objects/1/ N/A form N/A N/A r context N/A assign_form N/A N/A N/A self assertEqual N/A N/A form initial N/A users N/A user4 N/A N/A N/A __all__ N/A ViewTest