Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases body Assign NameStore Num Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Dict NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A django.test.testcases TestCase rulez registry rulez.backends ObjectPermissionBackend rulez.exceptions NonexistentFieldName NotBooleanPermission rulez.registry Rule MockModel N/A N/A N/A pk 999 N/A not_callable whatever __init__ N/A N/A self N/A N/A N/A N/A self attr_permission True N/A N/A self attr_wrong_permission I'm not a boolean N/A mock_permission N/A N/A self user N/A N/A N/A True N/A mock_simple_permission N/A N/A self N/A N/A N/A True N/A mock_non_boolean_permission N/A N/A self user N/A N/A N/A Whatever N/A N/A MockUser N/A N/A __init__ N/A N/A self is_active N/A True N/A N/A N/A self pk 666 N/A N/A self is_active is_active N/A is_anonymous N/A N/A self N/A N/A N/A False N/A N/A BackendTestCase N/A TestCase N/A create_fixtures N/A N/A self N/A N/A N/A N/A self user N/A MockUser N/A N/A self inactive_user N/A MockUser is_active False N/A N/A self model N/A MockModel N/A test_user_is_tested_for_rule N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A N/A N/A registry register mock_permission MockModel N/A back N/A ObjectPermissionBackend N/A res N/A N/A back has_perm N/A self user mock_permission N/A self model N/A N/A N/A self assertEqual res True N/A test_rules_returns_False_for_None_obj N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A N/A N/A registry register mock_permission MockModel N/A back N/A ObjectPermissionBackend N/A res N/A N/A back has_perm N/A self user mock_permission None N/A N/A N/A self assertEqual res False N/A test_rules_returns_False_for_inexistant_rule N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A N/A N/A registry register mock_permission MockModel N/A back N/A ObjectPermissionBackend N/A res N/A N/A back has_perm N/A self user whatever_permission N/A self model N/A N/A N/A self assertEqual res False N/A test_user_is_tested_for_simple_rule N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A N/A N/A registry register mock_simple_permission MockModel N/A back N/A ObjectPermissionBackend N/A res N/A N/A back has_perm N/A self user mock_simple_permission N/A self model N/A N/A N/A self assertEqual res True N/A test_user_is_tested_for_simple_rule_by_field_name N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A N/A N/A registry register mock_permission MockModel field_name mock_simple_permission N/A back N/A ObjectPermissionBackend N/A res N/A N/A back has_perm N/A self user mock_permission N/A self model N/A N/A N/A self assertEqual res True N/A test_non_existant_filenames_are_caught N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A codename mock_permission N/A rule N/A Rule codename MockModel field_name I_do_not_exist N/A N/A N/A N/A N/A registry registry N/A MockModel update N/A codename rule N/A back N/A ObjectPermissionBackend N/A N/A N/A self assertRaises NonexistentFieldName N/A back has_perm N/A self user mock_permission N/A self model N/A test_inactive_user_can_never_have_any_permissions N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A N/A N/A registry register mock_permission MockModel N/A back N/A ObjectPermissionBackend N/A res N/A N/A back has_perm N/A self inactive_user mock_permission N/A self model N/A N/A N/A self assertEqual res False N/A test_non_boolean_permissions_raises N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A N/A N/A registry register mock_non_boolean_permission MockModel N/A back N/A ObjectPermissionBackend N/A N/A N/A self assertRaises NotBooleanPermission N/A back has_perm N/A self user mock_non_boolean_permission N/A self model N/A test_non_callable_permission_raises N/A N/A self N/A N/A N/A N/A N/A self create_fixtures N/A N/A N/A registry register not_callable MockModel N/A back N/A ObjectPermissionBackend N/A N/A N/A self assertRaises NotBooleanPermission N/A back has_perm N/A self user not_callable N/A self model N/A N/A