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.TestCase
Test the default registration forms.
-
class
registration.tests.test_forms.
RegistrationFormTests
(methodName='runTest')[source]¶ Bases:
django.test.testcases.TestCase
Test the default registration forms.
-
test_registration_form
()[source]¶ Test that
RegistrationForm
enforces username constraints and matching passwords.
-
test_registration_form_no_free_email
()[source]¶ Test that
RegistrationFormNoFreeEmail
disallows 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
GET
to theregister
view uses the appropriate template and populates the registration form into the context.
-
test_registration_view_post_failure
()[source]¶ A
POST
to theregister
view 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
GET
to theActivationView
view wht invalid activation_key raise Http404
-
test_activation_view_get_success
()[source]¶ A
GET
to theActivationView
view with valid activation_key
-
test_activation_view_post_failure
()[source]¶ A
POST
to theActivationView
view with invalid data does not activate a user, and raise Http404
-
test_activation_view_post_success
()[source]¶ A
POST
to theActivationView
view with valid data properly handles a valid activation
-
test_registration_complete_view_get
()[source]¶ A
GET
to thecomplete
view uses the appropriate template and populates the registration form into the context.
-
test_registration_view_closed
()[source]¶ Any attempt to access the
register
view when registration is closed fails and redirects.
-
test_registration_view_get
()[source]¶ A
GET
to theregister
view uses the appropriate template and populates the registration form into the context.
-