mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
@@ -532,7 +532,10 @@ class HttpResponseSubclassesTests(SimpleTestCase):
|
||||
|
||||
def test_redirect_repr(self):
|
||||
response = HttpResponseRedirect("/redirected/")
|
||||
expected = '<HttpResponseRedirect status_code=302, "text/html; charset=utf-8", url="/redirected/">'
|
||||
expected = (
|
||||
'<HttpResponseRedirect status_code=302, "text/html; charset=utf-8", '
|
||||
'url="/redirected/">'
|
||||
)
|
||||
self.assertEqual(repr(response), expected)
|
||||
|
||||
def test_invalid_redirect_repr(self):
|
||||
@@ -545,7 +548,10 @@ class HttpResponseSubclassesTests(SimpleTestCase):
|
||||
DisallowedRedirect, "Unsafe redirect to URL with protocol 'ssh'"
|
||||
):
|
||||
HttpResponseRedirect.__init__(response, "ssh://foo")
|
||||
expected = '<HttpResponseRedirect status_code=302, "text/html; charset=utf-8", url="ssh://foo">'
|
||||
expected = (
|
||||
'<HttpResponseRedirect status_code=302, "text/html; charset=utf-8", '
|
||||
'url="ssh://foo">'
|
||||
)
|
||||
self.assertEqual(repr(response), expected)
|
||||
|
||||
def test_not_modified(self):
|
||||
|
||||
Reference in New Issue
Block a user