diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py
index 6a6b5d3..8ae0682 100644
a
|
b
|
class ClientTest(TestCase):
|
623 | 623 | # Check some response details |
624 | 624 | self.assertContains(response, 'This is a test') |
625 | 625 | |
| 626 | def test_relative_redirect(self): |
| 627 | response = self.client.get('/accounts/') |
| 628 | self.assertRedirects(response, '/accounts/login/') |
| 629 | |
626 | 630 | def test_mass_mail_sending(self): |
627 | 631 | "Test that mass mail is redirected to a dummy outbox during test setup" |
628 | 632 | |
diff --git a/tests/test_client/urls.py b/tests/test_client/urls.py
index f605448..32128d8 100644
a
|
b
|
urlpatterns = [
|
34 | 34 | url(r'^nesting_exception_view/$', views.nesting_exception_view), |
35 | 35 | url(r'^django_project_redirect/$', views.django_project_redirect), |
36 | 36 | |
| 37 | url(r'^accounts/$', RedirectView.as_view(url='login/')), |
37 | 38 | url(r'^accounts/login/$', auth_views.login, {'template_name': 'login.html'}), |
38 | 39 | url(r'^accounts/logout/$', auth_views.logout), |
39 | 40 | ] |