changing extension in test from csv to txt (not all systems support the text/csv mimetype)

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40787
This commit is contained in:
Pablo Hoffman 2009-01-27 13:33:28 +00:00
parent 134b867abe
commit c3d61dc999
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class ResponseTypesTest(unittest.TestCase):
def test_from_headers(self):
mappings = [
({'Content-Type': ['text/html; charset=utf-8']}, HtmlResponse),
({'Content-Type': ['application/octet-stream'], 'Content-Disposition': ['attachment; filename=data.csv']}, TextResponse),
({'Content-Type': ['application/octet-stream'], 'Content-Disposition': ['attachment; filename=data.txt']}, TextResponse),
]
for source, cls in mappings:
source = Headers(source)