Removed assert for wrong charset

This commit is contained in:
Vladislav Vlastovskiy 2014-04-14 15:02:52 +04:00 committed by Jason Bittel
parent 6e90dad8e3
commit 644f9b5421

View File

@ -1,3 +1,5 @@
#-*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework.compat import StringIO
from django import forms
@ -129,10 +131,6 @@ class TestFileUploadParser(TestCase):
filename = parser.get_filename(self.stream, None, self.parser_context)
self.assertEqual(filename, 'fallback.txt')
self.__replace_content_disposition('inline; filename=fallback.txt; filename*=WRONG\'\'ÀĥƦ.txt')
filename = parser.get_filename(self.stream, None, self.parser_context)
self.assertEqual(filename, 'fallback.txt')
def __replace_content_disposition(self, disposition):
self.parser_context['request'].META['HTTP_CONTENT_DISPOSITION'] = disposition