Package expedient :: Package common :: Package permissions :: Package tests :: Module tests :: Class TestObjectPermissions
[hide private]
[frames] | no frames]

Class TestObjectPermissions

source code


Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
test_get_missing(self)
Tests that the get_missing method of models.ExpedientPermissionManager is correct.
source code
 
test_get_missing_for_target(self)
Tests that the get_missing_for_target method of models.ExpedientPermissionManager is correct.
source code
 
test_must_have_permission(self)
Tests the must_have_permission shortcut.
source code
 
test_get_missing_permittee_same_as_target(self)
Tests that a permittee always has all permissions on itself.
source code
 
test_filter_for_obj_permission(self)
Tests that the filter_for_obj_permission returns a list of all users who own the permission.
source code
 
test_obj_method_decorators(self)
Tests that the require_obj_permissions and require_obj_permissions_for_user are correct.
source code
 
test_delegation(self)
Tests that permission delegation works correctly.
source code
 
test_has_obj_perm(self)
Tests that the has_obj_perm template filter works.
source code
 
test_as_class(self)
Tests that the as_class template filter works
source code
 
test_delete_all_for_target(self) source code
 
test_get_permitted_objects(self) source code

Inherited from tests.manager.SettingsTestCase: __init__, tearDown

Inherited from django.test.testcases.TestCase (private): _fixture_setup, _fixture_teardown

Inherited from django.test.testcases.TransactionTestCase: __call__, assertContains, assertFormError, assertNotContains, assertQuerysetEqual, assertRedirects, assertTemplateNotUsed, assertTemplateUsed, restore_warnings_state, save_warnings_state

Inherited from django.test.testcases.TransactionTestCase (private): _post_teardown, _pre_setup, _urlconf_setup, _urlconf_teardown

Inherited from unittest.TestCase: __eq__, __hash__, __ne__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

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

Overrides: unittest.TestCase.setUp
(inherited documentation)