summaryrefslogtreecommitdiff
path: root/tests/httpwrappers/tests.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-03-14 11:55:43 -0400
committerTim Graham <timograham@gmail.com>2016-03-14 18:58:49 -0400
commitb4347d82b767c5a6c288ae010669dea92336fadd (patch)
tree572af7533ad212b01b54a7d42fa796b0b7901f58 /tests/httpwrappers/tests.py
parent59df07738c05db85f5cfb8da61d3ec36c2a55987 (diff)
downloaddjango-b4347d82b767c5a6c288ae010669dea92336fadd.tar.gz
Replaced unnecessary smart_str() with force_str() in httpwrappers tests.
Diffstat (limited to 'tests/httpwrappers/tests.py')
-rw-r--r--tests/httpwrappers/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index 8dfa2876c8..a3d6691794 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -21,7 +21,7 @@ from django.http import (
from django.test import SimpleTestCase
from django.utils import six
from django.utils._os import upath
-from django.utils.encoding import smart_str
+from django.utils.encoding import force_str
from django.utils.functional import lazystr
@@ -291,10 +291,10 @@ class HttpResponseTests(unittest.TestCase):
# Latin-1 unicode or bytes values are also converted to native strings.
r['key'] = 'café'
- self.assertEqual(r['key'], smart_str('café', 'latin-1'))
+ self.assertEqual(r['key'], force_str('café', 'latin-1'))
self.assertIsInstance(r['key'], str)
r['key'] = 'café'.encode('latin-1')
- self.assertEqual(r['key'], smart_str('café', 'latin-1'))
+ self.assertEqual(r['key'], force_str('café', 'latin-1'))
self.assertIsInstance(r['key'], str)
self.assertIn('café'.encode('latin-1'), r.serialize_headers())