diff --git a/tests/regressiontests/i18n/patterns/tests.py b/tests/regressiontests/i18n/patterns/tests.py
index 73c9f56..65914e8 100644
a
|
b
|
from __future__ import unicode_literals
|
3 | 3 | import os |
4 | 4 | |
5 | 5 | from django.core.exceptions import ImproperlyConfigured |
| 6 | from django.core import mail |
6 | 7 | from django.core.urlresolvers import reverse, clear_url_caches |
7 | 8 | from django.test import TestCase |
8 | 9 | from django.test.utils import override_settings |
… |
… |
class URLRedirectTests(URLTestCaseBase):
|
169 | 170 | response = self.client.get(response['location']) |
170 | 171 | self.assertEqual(response.status_code, 200) |
171 | 172 | |
| 173 | @override_settings(SEND_BROKEN_LINK_EMAILS=True) |
| 174 | def test_no_broken_link_email_on_redirect(self): |
| 175 | response = self.client.get('/account/register/', HTTP_ACCEPT_LANGUAGE='en', |
| 176 | HTTP_REFERER='/another/url/') |
| 177 | self.assertRedirects(response, '/en/account/register/') |
| 178 | self.assertEqual(len(mail.outbox), 0) |
| 179 | |
172 | 180 | |
173 | 181 | class URLRedirectWithoutTrailingSlashTests(URLTestCaseBase): |
174 | 182 | """ |