tests Package

tests Package

compatibility Module

models Module

class permission.tests.models.Article(id, title, content, author_id, editor_id, created_at)[source]

Bases: django.db.models.base.Model

Methods

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception Article.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

Article.author
Article.authors
Article.editor
Article.editors
Article.get_next_by_created_at(*moreargs, **morekwargs)
Article.get_previous_by_created_at(*moreargs, **morekwargs)
Article.objects = <django.db.models.manager.Manager object at 0x3a2ead0>

test_handlers Module

class permission.tests.test_handlers.PermissionLogicalPermissionHandlerTestCase(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Attributes

Methods

setUp()[source]
test_constructor_with_app_label()[source]
test_has_perm_permission_logics_called()[source]
class permission.tests.test_handlers.PermissionPermissionHandlersTestCase(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Attributes

Methods

setUp()[source]
test__get_app_perms_with_app_label()[source]
test__get_app_perms_with_model()[source]
test__get_model_perms()[source]
test_constructor_with_app_label()[source]
test_constructor_with_model()[source]
test_get_permissions()[source]
test_get_permissions_with_excludes()[source]
test_get_permissions_with_excludes_change()[source]
test_get_permissions_with_includes()[source]
test_get_permissions_with_includes_change()[source]
test_has_perm_add_wiht_obj()[source]
test_has_perm_add_wihtout_obj()[source]
test_has_perm_change_wiht_obj()[source]
test_has_perm_change_wihtout_obj()[source]
test_has_perm_delete_wiht_obj()[source]
test_has_perm_delete_wihtout_obj()[source]

utils Module

permission.tests.utils.create_article(title, user=None)[source]
permission.tests.utils.create_permission(name, model=None)[source]
permission.tests.utils.create_user(username)[source]