mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
[py3] Replaced unicode/str by six.text_type/bytes.
This commit is contained in:
@@ -6,6 +6,7 @@ from django.core.wsgi import get_wsgi_application
|
||||
from django.test import TestCase
|
||||
from django.test.client import RequestFactory
|
||||
from django.test.utils import override_settings
|
||||
from django.utils import six
|
||||
from django.utils import unittest
|
||||
|
||||
|
||||
@@ -39,7 +40,7 @@ class WSGITest(TestCase):
|
||||
response_data["headers"],
|
||||
[('Content-Type', 'text/html; charset=utf-8')])
|
||||
self.assertEqual(
|
||||
unicode(response),
|
||||
six.text_type(response),
|
||||
"Content-Type: text/html; charset=utf-8\n\nHello World!")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user