permission.tests.test_decorators package

Submodules

permission.tests.test_decorators.test_classbase module

class permission.tests.test_decorators.test_classbase.PermissionClassDecoratorsTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_with_get_object()[source]
test_with_get_queryset()[source]
test_with_object()[source]
test_with_queryset()[source]

permission.tests.test_decorators.test_functionbase module

class permission.tests.test_decorators.test_functionbase.PermissionFunctionDecoratorsTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_date_based_object_id()[source]
test_date_based_slug()[source]
test_list_detail_object_id()[source]
test_list_detail_slug()[source]

permission.tests.test_decorators.test_methodbase module

class permission.tests.test_decorators.test_methodbase.PermissionClassDecoratorsTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_with_get_object()[source]
test_with_get_queryset()[source]
test_with_object()[source]
test_with_queryset()[source]

permission.tests.test_decorators.test_permission_required module

class permission.tests.test_decorators.test_permission_required.PermissionDecoratorsTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_class_views()[source]
test_function_views()[source]
test_method_views()[source]
test_permission_required()[source]
class permission.tests.test_decorators.test_permission_required.View(**kwargs)[source]

Bases: View

dispatch(request, *args, **kwargs)[source]
get_object(queryset=None)[source]
permission.tests.test_decorators.test_permission_required.view_func(request, *args, **kwargs)[source]

permission.tests.test_decorators.utils module

permission.tests.test_decorators.utils.create_mock_class(name, base, instance=None)[source]
permission.tests.test_decorators.utils.create_mock_handler()[source]
permission.tests.test_decorators.utils.create_mock_model()[source]
permission.tests.test_decorators.utils.create_mock_queryset(obj)[source]
permission.tests.test_decorators.utils.create_mock_request(mock_permission_handler)[source]
permission.tests.test_decorators.utils.create_mock_view_class(view_func)[source]
permission.tests.test_decorators.utils.create_mock_view_func()[source]

Module contents