summaryrefslogtreecommitdiff
path: root/tests/handlers
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2025-07-22 20:41:41 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit69a93a88edb56ba47f624dac7a21aacc47ea474f (patch)
treef57507a4435d032493cae40e06ecb254790b67b2 /tests/handlers
parent55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff)
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.
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py
index e73fc15195..83dfd95713 100644
--- a/tests/handlers/tests.py
+++ b/tests/handlers/tests.py
@@ -58,7 +58,9 @@ class HandlerTests(SimpleTestCase):
self.assertEqual(got, ["café", "café", "caf\ufffd", "café"])
def test_non_ascii_cookie(self):
- """Non-ASCII cookies set in JavaScript are properly decoded (#20557)."""
+ """
+ Non-ASCII cookies set in JavaScript are properly decoded (#20557).
+ """
environ = self.request_factory.get("/").environ
raw_cookie = 'want="café"'.encode("utf-8").decode("iso-8859-1")
environ["HTTP_COOKIE"] = raw_cookie