diff options
| author | Vladislav Vlastovskiy | 2014-04-14 12:28:41 +0400 |
|---|---|---|
| committer | Vladislav Vlastovskiy | 2014-04-14 12:28:41 +0400 |
| commit | 063addabfeb716f54c5784917e92ab6abb635ff5 (patch) | |
| tree | c09f9998aca21cb2e1ff8c880b089c5408397ba7 /rest_framework | |
| parent | 4b3eb6e0b0e6412693de126ac92482a276ca9a78 (diff) | |
| download | django-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')
| -rw-r--r-- | rest_framework/tests/test_parsers.py | 2 |
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': {}} |
