mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
committed by
Tim Graham
parent
232a1d297c
commit
fc8e1e0c10
@@ -345,7 +345,7 @@ class HttpResponseTests(unittest.TestCase):
|
||||
# test odd inputs
|
||||
r = HttpResponse()
|
||||
r.content = ['1', '2', 3, '\u079e']
|
||||
#'\xde\x9e' == unichr(1950).encode('utf-8')
|
||||
# '\xde\x9e' == unichr(1950).encode('utf-8')
|
||||
self.assertEqual(r.content, b'123\xde\x9e')
|
||||
|
||||
# .content can safely be accessed multiple times.
|
||||
|
||||
Reference in New Issue
Block a user