Commit 90374baf authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify assertions in content-disposition case because there are double...

modify assertions in content-disposition case because there are double quotations around the filename after r24942.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24968 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e2ca31f4
...@@ -77,7 +77,7 @@ class TestOoodResponse(ERP5TypeTestCase): ...@@ -77,7 +77,7 @@ class TestOoodResponse(ERP5TypeTestCase):
ERP5Site_viewNothingAsOdt(batch_mode=0) ERP5Site_viewNothingAsOdt(batch_mode=0)
self.assertEqual('application/vnd.oasis.opendocument.text', self.assertEqual('application/vnd.oasis.opendocument.text',
request.RESPONSE.getHeader('content-type').split(';')[0]) request.RESPONSE.getHeader('content-type').split(';')[0])
self.assertEqual('inline;filename=ERP5Site_viewNothingAsOdt', self.assertEqual('inline;filename="ERP5Site_viewNothingAsOdt"',
request.RESPONSE.getHeader('content-disposition')) request.RESPONSE.getHeader('content-disposition'))
def test_01b_noExcEmptyFormatNoBatchMode(self): def test_01b_noExcEmptyFormatNoBatchMode(self):
...@@ -87,7 +87,7 @@ class TestOoodResponse(ERP5TypeTestCase): ...@@ -87,7 +87,7 @@ class TestOoodResponse(ERP5TypeTestCase):
ERP5Site_viewNothingAsOdt(format='', batch_mode=0) ERP5Site_viewNothingAsOdt(format='', batch_mode=0)
self.assertEqual('application/vnd.oasis.opendocument.text', self.assertEqual('application/vnd.oasis.opendocument.text',
request.RESPONSE.getHeader('content-type').split(';')[0]) request.RESPONSE.getHeader('content-type').split(';')[0])
self.assertEqual('inline;filename=ERP5Site_viewNothingAsOdt', self.assertEqual('inline;filename="ERP5Site_viewNothingAsOdt"',
request.RESPONSE.getHeader('content-disposition')) request.RESPONSE.getHeader('content-disposition'))
def test_02_noExcNoFormatBatchMode(self): def test_02_noExcNoFormatBatchMode(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment