1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[py3] Ported django.http according to PEP 3333.

Perfomed some style cleanup while I was in the area.
This commit is contained in:
Aymeric Augustin
2012-08-14 09:44:04 +02:00
parent 0df0cf70d4
commit e04230e2e4
3 changed files with 132 additions and 107 deletions

View File

@@ -40,8 +40,8 @@ class WSGITest(TestCase):
response_data["headers"],
[('Content-Type', 'text/html; charset=utf-8')])
self.assertEqual(
six.text_type(response),
"Content-Type: text/html; charset=utf-8\n\nHello World!")
bytes(response),
b"Content-Type: text/html; charset=utf-8\r\n\r\nHello World!")
class GetInternalWSGIApplicationTest(unittest.TestCase):