tests.py

Contains all tests for login and User model.

Class definitions:

class apps.account.tests.LoginTest(methodName='runTest')[source]

Bases: core.unittest.baseunittest.BaseUnitTest

Tests the login functions, login block after to many incorrect logins and functions on the User model that were not covered.

check_logins()[source]

Checks the basic tests logins

check_block_system()[source]

Checks login block system which temporarily blocks the user after to many invalid login attempts.

check_invalid_login()[source]

Check that an user cannot login with a faulty password

check_model()[source]

Check extra property and functions on the User model

test_check_logins()[source]

Test the login features