diff options
author | Vytis Banaitis <vytis.banaitis@gmail.com> | 2017-01-20 23:04:05 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-01-26 08:19:27 -0500 |
commit | d1bab24e0144d14513a1411503c95ececb425188 (patch) | |
tree | 187452bf7b66a9600abc47570ccae22e6d539ede /tests/httpwrappers | |
parent | 888c1e9bfe49135d049cbdcbbb0f2e97a1a0a1f5 (diff) | |
download | django-d1bab24e0144d14513a1411503c95ececb425188.tar.gz |
Refs #23919, #27778 -- Removed obsolete mentions of unicode.
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r-- | tests/httpwrappers/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index c58163b014..800b584fe5 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -280,7 +280,7 @@ class HttpResponseTests(unittest.TestCase): def test_headers_type(self): r = HttpResponse() - # ASCII unicode or bytes values are converted to strings. + # ASCII strings or bytes values are converted to strings. r['key'] = 'test' self.assertEqual(r['key'], 'test') r['key'] = 'test'.encode('ascii') @@ -296,7 +296,7 @@ class HttpResponseTests(unittest.TestCase): self.assertEqual(r['key'], '=?utf-8?b?4oCg?=') self.assertIn(b'=?utf-8?b?4oCg?=', r.serialize_headers()) - # The response also converts unicode or bytes keys to strings, but requires + # The response also converts string or bytes keys to strings, but requires # them to contain ASCII r = HttpResponse() del r['Content-Type'] @@ -570,7 +570,7 @@ class StreamingHttpResponseTests(SimpleTestCase): self.assertEqual(list(r), [b'abc', b'def']) self.assertEqual(list(r), []) - # iterating over Unicode strings still yields bytestring chunks. + # iterating over strings still yields bytestring chunks. r.streaming_content = iter(['hello', 'café']) chunks = list(r) # '\xc3\xa9' == unichr(233).encode('utf-8') |