utils.tests package¶
Submodules¶
utils.tests.test_auth module¶
- class utils.tests.test_auth.AuthTests(methodName='runTest')¶
Bases:
rest_framework.test.APITestCase
- setUp()¶
Hook method for setting up the test fixture before exercising it.
- test_authorized_access_when_there_is_no_super_user_but_master_key_is_correct()¶
Requests that require authorization should fail if there is no super user with good Bearer token (Master Key)
- test_unauthorized_access_with_wrong_master_key()¶
Requests that require authorization should fail if there header with wrong Bearer token (Master Key)
- test_unauthorized_access_without_master_key()¶
Requests that require authorization should fail if there is no header with Bearer token (Master Key)