mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
This commit is contained in:
@@ -331,7 +331,9 @@ class ClientTest(TestCase):
|
||||
self.assertEqual(response.request["PATH_INFO"], "/accounts/login/")
|
||||
|
||||
def test_follow_relative_redirect_no_trailing_slash(self):
|
||||
"A URL with a relative redirect with no trailing slash can be followed."
|
||||
"""
|
||||
A URL with a relative redirect with no trailing slash can be followed.
|
||||
"""
|
||||
response = self.client.get("/accounts/no_trailing_slash", follow=True)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.request["PATH_INFO"], "/accounts/login/")
|
||||
@@ -681,7 +683,9 @@ class ClientTest(TestCase):
|
||||
]
|
||||
)
|
||||
def test_view_with_inactive_force_login(self):
|
||||
"Request a page that is protected with @login, but use an inactive login"
|
||||
"""
|
||||
Request a page that is protected with @login, but use an inactive login
|
||||
"""
|
||||
|
||||
# Get the page without logging in. Should result in 302.
|
||||
response = self.client.get("/login_protected_view/")
|
||||
|
||||
Reference in New Issue
Block a user