Tests updated for double quotes around filename

This commit is contained in:
CJ 2014-06-06 09:58:37 -04:00
parent 7b2d8215e6
commit 1407c0cc4e

View file

@ -13,7 +13,7 @@ class DownloadResponseTestCase(unittest.TestCase):
attachment=True,
basename=u'espacé .txt',)
headers = response.default_headers
self.assertIn("filename=espace_.txt",
self.assertIn("filename=\"espace_.txt\"",
headers['Content-Disposition'])
self.assertIn("filename*=UTF-8''espac%C3%A9%20.txt",
self.assertIn("filename*=UTF-8''\"espac%C3%A9%20.txt\"",
headers['Content-Disposition'])