django_pam.auth.tests package

django_pam.auth.tests.base_test module

class django_pam.auth.tests.base_test.BaseDjangoPAM(name)[source]

Bases: TestCase

django_pam.auth.tests.test_auth_backends module

class django_pam.auth.tests.test_auth_backends.TestPAMBackend(name)[source]

Bases: BaseDjangoPAM

setUp()[source]

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

test_authenticate_fail_invalid()[source]

Test that authenticate fails with invalid credentials.

test_authenticate_pass()[source]

Test that authenticate method works properly.

test_authenticate_pass_encoding()[source]

Test that authenticate method works properly with ‘encoding’ passed in.

test_authenticate_pass_resetcreds()[source]

Test that authenticate method works properly with ‘resetcreds’ passed in.

test_authenticate_pass_service()[source]

Test that authenticate method works properly with ‘service’ passed in.

test_get_user_invalid()[source]

Test that an invalid user returns a None object.

test_get_user_valid()[source]

Test that the PAMBackend.authenticate() method works properly.