jeverling / django-registration_appenginepatch
The django-registration app by James Bennett, amateurishly modified to work with appenginepatch: http://code.google.com/p/app-engine-patch/ The original django-registration app can be found here: http://www.bitbucket.org/ubernostrum/django-reg...
Clone this repository (size: 258.1 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/jeverling/django-registration_appenginepatch/
| commit 227: | e3efe0236825 |
| parent 226: | 16373077f83d |
| branch: | default |
Add a unit test for the email-disabling feature.
14 months ago
Changed (Δ487 bytes):
raw changeset »
registration/tests.py (11 lines added, 0 lines removed)
Up to file-list registration/tests.py:
| … | … | @@ -79,6 +79,17 @@ class RegistrationModelTests(Registratio |
79 |
79 |
""" |
80 |
80 |
self.assertEqual(len(mail.outbox), 2) |
81 |
81 |
|
82 |
def test_activation_email_disable(self): |
|
83 |
""" |
|
84 |
Test that activation email can be disabled. |
|
85 |
||
86 |
""" |
|
87 |
RegistrationProfile.objects.create_inactive_user(username='noemail', |
|
88 |
password='foo', |
|
89 |
email='nobody@example.com', |
|
90 |
send_email=False) |
|
91 |
self.assertEqual(len(mail.outbox), 2) |
|
92 |
||
82 |
93 |
def test_activation(self): |
83 |
94 |
""" |
84 |
95 |
Test that user activation actually activates the user and |
