permission.tests.test_logics package

Submodules

permission.tests.test_logics.test_author module

class permission.tests.test_logics.test_author.PermissionLogicsAuthorPermissionLogicTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_constructor()[source]
test_constructor_with_specifing_any_permission()[source]
test_constructor_with_specifing_change_permission()[source]
test_constructor_with_specifing_delete_permission()[source]
test_constructor_with_specifing_field_name()[source]
test_has_perm_add_with_obj()[source]
test_has_perm_add_with_obj_author()[source]
test_has_perm_add_with_obj_author_diff_field_name()[source]
test_has_perm_add_with_obj_author_non_any()[source]
test_has_perm_add_with_obj_author_non_any_no_change()[source]
test_has_perm_add_with_obj_author_non_any_no_delete()[source]
test_has_perm_add_with_obj_with_anonymous()[source]
test_has_perm_add_without_obj()[source]
test_has_perm_add_without_obj_with_anonymous()[source]
test_has_perm_change_with_obj()[source]
test_has_perm_change_with_obj_author()[source]
test_has_perm_change_with_obj_author_diff_field_name()[source]
test_has_perm_change_with_obj_author_non_any()[source]
test_has_perm_change_with_obj_author_non_any_no_change()[source]
test_has_perm_change_with_obj_author_non_any_no_delete()[source]
test_has_perm_change_with_obj_with_anonymous()[source]
test_has_perm_change_without_obj()[source]
test_has_perm_change_without_obj_with_anonymous()[source]
test_has_perm_delete_with_obj()[source]
test_has_perm_delete_with_obj_author()[source]
test_has_perm_delete_with_obj_author_diff_field_name()[source]
test_has_perm_delete_with_obj_non_any()[source]
test_has_perm_delete_with_obj_non_any_no_change()[source]
test_has_perm_delete_with_obj_non_any_no_delete()[source]
test_has_perm_delete_with_obj_with_anonymous()[source]
test_has_perm_delete_without_obj()[source]
test_has_perm_delete_without_obj_with_anonymous()[source]

permission.tests.test_logics.test_base module

class permission.tests.test_logics.test_base.PermissionLogicsPermissionLogicTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_constructor()[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]

permission.tests.test_logics.test_collaborators module

class permission.tests.test_logics.test_collaborators.PermissionLogicsCollaboratorsPermissionLogicTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_constructor()[source]
test_constructor_with_specifing_any_permission()[source]
test_constructor_with_specifing_change_permission()[source]
test_constructor_with_specifing_delete_permission()[source]
test_constructor_with_specifing_field_name()[source]
test_has_perm_add_with_obj()[source]
test_has_perm_add_with_obj_collaborators()[source]
test_has_perm_add_with_obj_collaborators_diff_field_name()[source]
test_has_perm_add_with_obj_collaborators_non_any()[source]
test_has_perm_add_with_obj_collaborators_non_any_no_change()[source]
test_has_perm_add_with_obj_collaborators_non_any_no_delete()[source]
test_has_perm_add_with_obj_with_anonymous()[source]
test_has_perm_add_without_obj()[source]
test_has_perm_add_without_obj_with_anonymous()[source]
test_has_perm_change_with_obj()[source]
test_has_perm_change_with_obj_collaborators()[source]
test_has_perm_change_with_obj_collaborators_diff_field_name()[source]
test_has_perm_change_with_obj_collaborators_non_any()[source]
test_has_perm_change_with_obj_collaborators_non_any_no_change()[source]
test_has_perm_change_with_obj_collaborators_non_any_no_delete()[source]
test_has_perm_change_with_obj_with_anonymous()[source]
test_has_perm_change_without_obj()[source]
test_has_perm_change_without_obj_with_anonymous()[source]
test_has_perm_delete_with_obj()[source]
test_has_perm_delete_with_obj_collaborators()[source]
test_has_perm_delete_with_obj_collaborators_diff_field_name()[source]
test_has_perm_delete_with_obj_non_any()[source]
test_has_perm_delete_with_obj_non_any_no_change()[source]
test_has_perm_delete_with_obj_non_any_no_delete()[source]
test_has_perm_delete_with_obj_with_anonymous()[source]
test_has_perm_delete_without_obj()[source]
test_has_perm_delete_without_obj_with_anonymous()[source]

permission.tests.test_logics.test_groupin module

class permission.tests.test_logics.test_groupin.PermissionLogicsAuthorPermissionLogicTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_constructor()[source]
test_constructor_with_specifing_add_permission()[source]
test_constructor_with_specifing_any_permission()[source]
test_constructor_with_specifing_change_permission()[source]
test_constructor_with_specifing_delete_permission()[source]
test_has_perm_add_with_obj()[source]
test_has_perm_add_with_obj_with_anonymous()[source]
test_has_perm_add_with_obj_with_two_groups()[source]
test_has_perm_add_with_obj_without_any_permission()[source]
test_has_perm_add_without_obj()[source]
test_has_perm_add_without_obj_with_anonymous()[source]
test_has_perm_add_without_obj_with_two_groups()[source]
test_has_perm_add_without_obj_without_any_permission()[source]
test_has_perm_change_with_obj()[source]
test_has_perm_change_with_obj_with_anonymous()[source]
test_has_perm_change_with_obj_with_two_groups()[source]
test_has_perm_change_with_obj_without_any_permission()[source]
test_has_perm_change_without_obj()[source]
test_has_perm_change_without_obj_with_anonymous()[source]
test_has_perm_change_without_obj_with_two_groups()[source]
test_has_perm_change_without_obj_without_any_permission()[source]
test_has_perm_delete_with_obj()[source]
test_has_perm_delete_with_obj_with_anonymous()[source]
test_has_perm_delete_with_obj_with_two_groups()[source]
test_has_perm_delete_with_obj_without_any_permission()[source]
test_has_perm_delete_without_obj()[source]
test_has_perm_delete_without_obj_with_anonymous()[source]
test_has_perm_delete_without_obj_with_two_groups()[source]
test_has_perm_delete_without_obj_without_any_permission()[source]

permission.tests.test_logics.test_oneself module

class permission.tests.test_logics.test_oneself.PermissionLogicsOneselfPermissionLogicTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_constructor()[source]
test_constructor_with_specifying_any_permission()[source]
test_constructor_with_specifying_change_permission()[source]
test_constructor_with_specifying_delete_permission()[source]
test_has_perm_add_with_himself()[source]
test_has_perm_add_with_himself_non_any()[source]
test_has_perm_add_with_himself_non_any_no_change()[source]
test_has_perm_add_with_himself_non_any_no_delete()[source]
test_has_perm_add_with_obj()[source]
test_has_perm_add_with_obj_with_anonymous()[source]
test_has_perm_add_without_obj()[source]
test_has_perm_add_without_obj_with_anonymous()[source]
test_has_perm_change_with_himself()[source]
test_has_perm_change_with_himself_non_any()[source]
test_has_perm_change_with_himself_non_any_no_change()[source]
test_has_perm_change_with_himself_non_any_no_delete()[source]
test_has_perm_change_with_obj()[source]
test_has_perm_change_with_obj_with_anonymous()[source]
test_has_perm_change_without_obj()[source]
test_has_perm_change_without_obj_with_anonymous()[source]
test_has_perm_delete_with_himself()[source]
test_has_perm_delete_with_himself_non_any_no_change()[source]
test_has_perm_delete_with_himself_non_any_no_delete()[source]
test_has_perm_delete_with_obj()[source]
test_has_perm_delete_with_obj_non_any()[source]
test_has_perm_delete_with_obj_with_anonymous()[source]
test_has_perm_delete_without_obj()[source]
test_has_perm_delete_without_obj_with_anonymous()[source]

permission.tests.test_logics.test_staff module

class permission.tests.test_logics.test_staff.PermissionLogicsStaffPermissionLogicTestCase(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_constructor()[source]
test_constructor_with_specifing_add_permission()[source]
test_constructor_with_specifing_any_permission()[source]
test_constructor_with_specifing_change_permission()[source]
test_constructor_with_specifing_delete_permission()[source]
test_has_perm_add_with_obj()[source]
test_has_perm_add_with_obj_with_anonymous()[source]
test_has_perm_add_with_obj_without_any()[source]
test_has_perm_add_without_obj()[source]
test_has_perm_add_without_obj_with_anonymous()[source]
test_has_perm_add_without_obj_without_any()[source]
test_has_perm_change_with_obj()[source]
test_has_perm_change_with_obj_with_anonymous()[source]
test_has_perm_change_with_obj_without_any()[source]
test_has_perm_change_without_obj()[source]
test_has_perm_change_without_obj_with_anonymous()[source]
test_has_perm_change_without_obj_without_any()[source]
test_has_perm_delete_with_obj()[source]
test_has_perm_delete_with_obj_with_anonymous()[source]
test_has_perm_delete_with_obj_without_any()[source]
test_has_perm_delete_without_obj()[source]
test_has_perm_delete_without_obj_with_anonymous()[source]
test_has_perm_delete_without_obj_without_any()[source]

Module contents