intranet.test package

Submodules

intranet.test.ion_test module

class intranet.test.ion_test.IonTestCase(methodName='runTest')[source]

Bases: TestCase

login(username: str = 'awilliam') User[source]

Log the test client in as the given user.

Parameters:

username – the username to log in as

Returns:

the User object corresponding to username

make_admin(username: str = 'awilliam') User[source]

Log in the test client as the given user, and make that user an admin (i.e. give it the admin_all group).

Parameters:

username – the username to log in as and make an admin

Returns:

the User object corresponding to username

reauth() None[source]

Reauthenticate the already logged in user.

classmethod setUpClass()[source]
classmethod tearDownClass()[source]

intranet.test.test_suite module

intranet.test.test_suite.run_tests()[source]

Wrapper for ./setup.py test.

Module contents