accounts.stateless_captcha.tests module
Tests for accounts.captcha
.
-
class
accounts.stateless_captcha.tests.
TestCaptcha
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Tests for accounts.captcha
.
-
test_check_invalid
()[source]
An incorrect value is passed.
-
test_check_valid
()[source]
The correct value is passed.
-
test_forged_captcha
()[source]
The captcha token cannot be decrypted.
-
test_ip_address_changed
()[source]
The captcha token cannot be decrypted.
-
test_malformed_captcha
()[source]
The captcha token cannot be decrypted.
-
test_new_captcha
()[source]
Generate and render a new captcha token.
-
test_not_a_token
()[source]
Something other than a captcha token is passed.