aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/test_parsers.py
diff options
context:
space:
mode:
authorVladislav Vlastovskiy2014-04-14 12:28:41 +0400
committerVladislav Vlastovskiy2014-04-14 12:28:41 +0400
commit063addabfeb716f54c5784917e92ab6abb635ff5 (patch)
treec09f9998aca21cb2e1ff8c880b089c5408397ba7 /rest_framework/tests/test_parsers.py
parent4b3eb6e0b0e6412693de126ac92482a276ca9a78 (diff)
downloaddjango-rest-framework-063addabfeb716f54c5784917e92ab6abb635ff5.tar.bz2
Removed encode from test
Django does not produce such a decoding by default, this test was not honest.
Diffstat (limited to 'rest_framework/tests/test_parsers.py')
-rw-r--r--rest_framework/tests/test_parsers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/test_parsers.py b/rest_framework/tests/test_parsers.py
index 7699e10c..ffd6b360 100644
--- a/rest_framework/tests/test_parsers.py
+++ b/rest_framework/tests/test_parsers.py
@@ -96,7 +96,7 @@ class TestFileUploadParser(TestCase):
request = MockRequest()
request.upload_handlers = (MemoryFileUploadHandler(),)
request.META = {
- 'HTTP_CONTENT_DISPOSITION': 'Content-Disposition: inline; filename=file.txt'.encode('utf-8'),
+ 'HTTP_CONTENT_DISPOSITION': 'Content-Disposition: inline; filename=file.txt',
'HTTP_CONTENT_LENGTH': 14,
}
self.parser_context = {'request': request, 'kwargs': {}}