Removed encode from test

Django does not produce such a decoding by default, this test was not honest.
This commit is contained in:
Vladislav Vlastovskiy 2014-04-14 12:28:41 +04:00
parent 4b3eb6e0b0
commit 063addabfe

View File

@ -96,7 +96,7 @@ class TestFileUploadParser(TestCase):
request = MockRequest() request = MockRequest()
request.upload_handlers = (MemoryFileUploadHandler(),) request.upload_handlers = (MemoryFileUploadHandler(),)
request.META = { 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, 'HTTP_CONTENT_LENGTH': 14,
} }
self.parser_context = {'request': request, 'kwargs': {}} self.parser_context = {'request': request, 'kwargs': {}}