mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user