Package expedient :: Package clearinghouse :: Package roles :: Module tests :: Class TestModels
[hide private]
[frames] | no frames]

Class TestModels

source code


Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Create a project and test permissions and permittees
source code
 
test_give_to_permittee(self) source code
 
test_remove_from_permittee_no_conflict(self)
Check that a role can be removed from a permittee along with its permissions when no other roles give the same permission
source code
 
test_remove_from_permittee_with_conflict(self)
Check that a role can be removed from a permittee along with its non-conflicting permissions
source code
 
test_add_permission(self)
Check that adding a permission to a role gives that permission to all permittees with the role
source code
 
test_add_permission_delegation(self)
Checks that add_permission works, and that delegation permissions are enforced.
source code
 
test_filter_for_can_delegate(self) source code
 
test_remove_permission(self)
Check that a permission can be removed from a role with and without conflicts
source code
 
test_filter_for_permission(self)
Check that the filter_for_permission method of the ProjectRoleManager works.
source code
 
test_get_users_for_role(self) source code

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__, __init__, __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, tearDown

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 

Create a project and test permissions and permittees

Overrides: unittest.TestCase.setUp