mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #27398 -- Simplified some tests with assertRedirects().
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user