Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam 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 decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad AugAssignBitOr NameStore UnaryOpInvert Call NameLoad NameLoad AugAssignBitOr NameStore NameLoad ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AugAssignBitAnd NameStore NameLoad AugAssignBitAnd NameStore UnaryOpInvert Call NameLoad NameLoad ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore BinOpBitAnd BinOpBitAnd Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad BinOpBitAnd BinOpBitAnd Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore BinOpBitAnd BinOpBitAnd Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad BinOpBitAnd BinOpBitAnd Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore BinOpBitOr BinOpBitOr Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad BinOpBitOr BinOpBitOr Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore BinOpBitOr BinOpBitOr Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad BinOpBitOr BinOpBitOr Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore UnaryOpInvert Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad UnaryOpInvert Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore UnaryOpInvert Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad UnaryOpInvert Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore BinOpBitOr BinOpBitAnd Call NameLoad NameLoad UnaryOpInvert Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad BinOpBitOr BinOpBitAnd Call NameLoad NameLoad UnaryOpInvert Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A django.test TestCase django.test.client RequestFactory rest_framework.permissions BasePermission rest_framework.views APIView rest_condition ConditionalPermission C And Or Not TestView N/A APIView N/A test_permission N/A N/A self request N/A N/A rest_framework.request Request N/A request N/A Request request N/A N/A self request request N/A permission N/A N/A self get_permissions N/A N/A N/A N/A N/A permission has_permission request self N/A N/A False N/A True N/A N/A TruePermission N/A BasePermission N/A has_permission N/A N/A self request view N/A N/A N/A True N/A N/A FalsePermission N/A BasePermission N/A has_permission N/A N/A self request view N/A N/A N/A False N/A N/A PermissionsTestCase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self requests N/A RequestFactory N/A assertViewPermission N/A N/A self view_class granted N/A True N/A N/A view N/A view_class N/A request N/A N/A N/A self requests get / N/A result N/A N/A view test_permission request N/A granted N/A N/A N/A N/A self assertTrue result N/A N/A N/A N/A self assertFalse result N/A test_conditional_permissions_with_assigment N/A N/A self N/A N/A N/A perm1 N/A C TruePermission N/A perm1 N/A N/A C TruePermission N/A perm1 FalsePermission View1 N/A TestView N/A N/A permission_classes N/A perm1 N/A N/A N/A N/A self assertViewPermission View1 True N/A perm2 N/A C TruePermission N/A perm2 TruePermission N/A perm2 N/A N/A C FalsePermission View2 N/A TestView N/A N/A permission_classes N/A perm2 N/A N/A N/A N/A self assertViewPermission View2 True N/A test_single_conditional_permission_true N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition TruePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A C TruePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A C TruePermission N/A View4 N/A TestView N/A N/A permission_classes N/A TruePermission N/A N/A N/A N/A self assertViewPermission View1 True N/A N/A N/A self assertViewPermission View2 True N/A N/A N/A self assertViewPermission View3 True N/A N/A N/A self assertViewPermission View4 True N/A test_single_conditional_permission_false N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition FalsePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A C FalsePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A C FalsePermission N/A View4 N/A TestView N/A N/A permission_classes N/A FalsePermission N/A N/A N/A N/A self assertViewPermission View1 False N/A N/A N/A self assertViewPermission View2 False N/A N/A N/A self assertViewPermission View3 False N/A N/A N/A self assertViewPermission View4 False N/A test_multi_and_conditional_permission_true N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A N/A N/A C TruePermission TruePermission TruePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A And TruePermission TruePermission N/A C TruePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A N/A N/A C TruePermission TruePermission TruePermission N/A View4 N/A TestView N/A N/A permission_classes N/A N/A And TruePermission TruePermission N/A C TruePermission N/A N/A N/A N/A self assertViewPermission View1 True N/A N/A N/A self assertViewPermission View2 True N/A N/A N/A self assertViewPermission View3 True N/A N/A N/A self assertViewPermission View4 True N/A test_multi_and_conditional_permission_false N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A N/A N/A C TruePermission FalsePermission TruePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A And TruePermission FalsePermission N/A C TruePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A N/A N/A C FalsePermission TruePermission TruePermission N/A View4 N/A TestView N/A N/A permission_classes N/A N/A And FalsePermission TruePermission N/A C TruePermission N/A N/A N/A N/A self assertViewPermission View1 False N/A N/A N/A self assertViewPermission View2 False N/A N/A N/A self assertViewPermission View3 False N/A N/A N/A self assertViewPermission View4 False N/A test_multi_or_conditional_permission_true N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A N/A N/A C TruePermission FalsePermission TruePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A Or TruePermission FalsePermission TruePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A N/A N/A C FalsePermission TruePermission TruePermission N/A View4 N/A TestView N/A N/A permission_classes N/A N/A Or FalsePermission TruePermission N/A C TruePermission N/A N/A N/A N/A self assertViewPermission View1 True N/A N/A N/A self assertViewPermission View2 True N/A N/A N/A self assertViewPermission View3 True N/A N/A N/A self assertViewPermission View4 True N/A test_multi_or_conditional_permission_false N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A N/A N/A C FalsePermission FalsePermission FalsePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A Or FalsePermission FalsePermission FalsePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A N/A N/A C FalsePermission FalsePermission FalsePermission N/A View4 N/A TestView N/A N/A permission_classes N/A N/A Or FalsePermission FalsePermission N/A C FalsePermission N/A N/A N/A N/A self assertViewPermission View1 False N/A N/A N/A self assertViewPermission View2 False N/A N/A N/A self assertViewPermission View3 False N/A N/A N/A self assertViewPermission View4 False N/A test_not_conditional_permission_true N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A N/A C FalsePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A Not FalsePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A N/A C FalsePermission N/A View4 N/A TestView N/A N/A permission_classes N/A N/A Not FalsePermission N/A N/A N/A N/A self assertViewPermission View1 True N/A N/A N/A self assertViewPermission View2 True N/A N/A N/A self assertViewPermission View3 True N/A N/A N/A self assertViewPermission View4 True N/A test_not_conditional_permission_false N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A N/A C TruePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A Not TruePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A N/A C TruePermission N/A View4 N/A TestView N/A N/A permission_classes N/A N/A Not TruePermission N/A N/A N/A N/A self assertViewPermission View1 False N/A N/A N/A self assertViewPermission View2 False N/A N/A N/A self assertViewPermission View3 False N/A N/A N/A self assertViewPermission View4 False N/A test_conditional_permission_true N/A N/A self N/A N/A View1 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A N/A N/A C TruePermission N/A N/A C FalsePermission TruePermission N/A View2 N/A TestView N/A N/A permission_classes N/A ConditionalPermission N/A permission_condition N/A And N/A Or TruePermission N/A Not FalsePermission TruePermission N/A View3 N/A TestView N/A N/A permission_classes N/A N/A N/A N/A C TruePermission N/A N/A C FalsePermission TruePermission N/A View4 N/A TestView N/A N/A permission_classes N/A N/A And N/A Or TruePermission N/A Not FalsePermission TruePermission N/A N/A N/A N/A self assertViewPermission View1 True N/A N/A N/A self assertViewPermission View2 True N/A N/A N/A self assertViewPermission View3 True N/A N/A N/A self assertViewPermission View4 True N/A N/A