registration.tests package¶
Submodules¶
registration.tests.compat module¶
registration.tests.mock module¶
registration.tests.test_admin module¶
registration.tests.test_backends module¶
registration.tests.test_forms module¶
-
class
registration.tests.test_forms.ActivationFormTests(methodName='runTest')[source]¶ Bases:
django.test.testcases.TestCaseTest the default registration forms.
-
class
registration.tests.test_forms.RegistrationFormTests(methodName='runTest')[source]¶ Bases:
django.test.testcases.TestCaseTest the default registration forms.
-
test_registration_form()[source]¶ Test that
RegistrationFormenforces username constraints and matching passwords.
-
test_registration_form_no_free_email()[source]¶ Test that
RegistrationFormNoFreeEmaildisallows registration with free email addresses.
-
registration.tests.test_models module¶
-
class
registration.tests.test_models.RegistrationProfileManagerTestCase(methodName='runTest')[source]¶ Bases:
django.test.testcases.TestCase-
user_info= {u'username': u'alice', u'email': u'alice@example.com'}¶
-
registration.tests.test_supplements module¶
-
class
registration.tests.test_supplements.RegistrationSupplementRetrievalTests(methodName='runTest')[source]¶ Bases:
django.test.testcases.TestCase
-
class
registration.tests.test_supplements.RegistrationViewWithDefaultRegistrationSupplementTestCase(methodName='runTest')[source]¶ Bases:
django.test.testcases.TestCase-
test_registration_view_get()[source]¶ A
GETto theregisterview uses the appropriate template and populates the registration form into the context.
-
test_registration_view_post_failure()[source]¶ A
POSTto theregisterview with invalid data does not create a user, and displays appropriate error messages.
-
registration.tests.test_views module¶
-
class
registration.tests.test_views.RegistrationViewTestCase(methodName='runTest')[source]¶ Bases:
django.test.testcases.TestCase-
test_activation_view_get_fail()[source]¶ A
GETto theActivationViewview wht invalid activation_key raise Http404
-
test_activation_view_get_success()[source]¶ A
GETto theActivationViewview with valid activation_key
-
test_activation_view_post_failure()[source]¶ A
POSTto theActivationViewview with invalid data does not activate a user, and raise Http404
-
test_activation_view_post_success()[source]¶ A
POSTto theActivationViewview with valid data properly handles a valid activation
-
test_registration_complete_view_get()[source]¶ A
GETto thecompleteview uses the appropriate template and populates the registration form into the context.
-
test_registration_view_closed()[source]¶ Any attempt to access the
registerview when registration is closed fails and redirects.
-
test_registration_view_get()[source]¶ A
GETto theregisterview uses the appropriate template and populates the registration form into the context.
-