|
|
@ -12,6 +12,7 @@ class AddEmailTestCase(BaseTestCase): |
|
|
|
self.client.login(username="[email protected]", password="password") |
|
|
|
r = self.client.get(self.url) |
|
|
|
self.assertContains(r, "Get an email message") |
|
|
|
self.assertContains(r, "Confirmation needed") |
|
|
|
|
|
|
|
def test_it_creates_channel(self): |
|
|
|
form = {"value": "[email protected]"} |
|
|
@ -58,6 +59,12 @@ class AddEmailTestCase(BaseTestCase): |
|
|
|
c = Channel.objects.get() |
|
|
|
self.assertEqual(c.value, "[email protected]") |
|
|
|
|
|
|
|
@override_settings(EMAIL_USE_VERIFICATION=False) |
|
|
|
def test_it_hides_confirmation_needed_notice(self): |
|
|
|
self.client.login(username="[email protected]", password="password") |
|
|
|
r = self.client.get(self.url) |
|
|
|
self.assertNotContains(r, "Confirmation needed") |
|
|
|
|
|
|
|
@override_settings(EMAIL_USE_VERIFICATION=False) |
|
|
|
def test_it_auto_verifies_email(self): |
|
|
|
form = {"value": "[email protected]"} |
|
|
|