cri_auth.tests.test_impersonate module

class cri_auth.tests.test_impersonate.TestImpersonate(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

assert_auth(username)[source]
assert_not_auth(username)[source]
client_logged(username)[source]
fixtures = ('tests/groups.yaml',)
setUp()[source]

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

classmethod setUpTestData()[source]

Load initial data for the TestCase.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_delete_impersonator()[source]
test_double_error()[source]
test_double_success()[source]
test_no_auth()[source]
test_no_perm()[source]
test_stop_success()[source]
test_stop_tricky_loop()[source]
test_success()[source]
test_success_self()[source]
test_withdraw_perm()[source]