mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Refs #27398 -- Simplified some tests with assertRedirects().
This commit is contained in:
parent
24959e48d9
commit
5d98d53fab
2 changed files with 9 additions and 39 deletions
|
@ -709,8 +709,7 @@ class LoginURLSettings(AuthViewsTestCase):
|
|||
"""Tests for settings.LOGIN_URL."""
|
||||
def assertLoginURLEquals(self, url):
|
||||
response = self.client.get('/login_required/')
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertURLEqual(response.url, url)
|
||||
self.assertRedirects(response, url, fetch_redirect_response=False)
|
||||
|
||||
@override_settings(LOGIN_URL='/login/')
|
||||
def test_standard_login_url(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue