summaryrefslogtreecommitdiff
path: root/tests/httpwrappers/tests.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-08 12:27:04 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-08 19:25:02 +0100
commit3278c31fa59b41d03aea167f4cf85f4ddf7f848d (patch)
tree0c80b4868391296335580242c8e65052a4f62a6b /tests/httpwrappers/tests.py
parent6a682b38e75d4c975b4c4493565a59f1bc14397c (diff)
[4.0.x] Refs #33476 -- Refactored code to strictly match 88 characters line length.
Backport of 7119f40c9881666b6f9b5cf7df09ee1d21cc8344 from main.
Diffstat (limited to 'tests/httpwrappers/tests.py')
-rw-r--r--tests/httpwrappers/tests.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index ef1dd8e1e7..f68524a484 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -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):