diff options
| author | Tom Christie | 2015-02-26 13:41:25 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-02-26 13:41:25 +0000 |
| commit | 1b398a20decbf6e10173d280bc4fccd86a94b629 (patch) | |
| tree | bddb1c44f82730cd960ea764b6e0e36e9743d5ea | |
| parent | 4b745eef3a452b79bac0fc2e7703aa0ade6836fb (diff) | |
| download | django-rest-framework-1b398a20decbf6e10173d280bc4fccd86a94b629.tar.bz2 | |
Who care what we do when it's totally malformed? Not me.
| -rw-r--r-- | tests/test_parsers.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/test_parsers.py b/tests/test_parsers.py index a9f32a65..fe6aec19 100644 --- a/tests/test_parsers.py +++ b/tests/test_parsers.py @@ -99,12 +99,5 @@ class TestFileUploadParser(TestCase): filename = parser.get_filename(self.stream, None, self.parser_context) self.assertEqual(filename, 'ÀĥƦ.txt') - self.__replace_content_disposition('inline; filename=fallback.txt; filename*=utf-8--ÀĥƦ.txt') - filename = parser.get_filename(self.stream, None, self.parser_context) - - # Malformed. Either None, 'ÀĥƦ.txt' or 'fallback.txt' will be acceptable. - # See also https://code.djangoproject.com/ticket/24209 - self.assertIn(filename, ('fallback.txt', 'ÀĥƦ.txt', None)) - def __replace_content_disposition(self, disposition): self.parser_context['request'].META['HTTP_CONTENT_DISPOSITION'] = disposition |
