Commit 3e85229e authored by Jérome Perrin's avatar Jérome Perrin

low level test of the attachment filename. Before r29972, the filename was

surrounded by quotes, and this was not rendered properly by all mailers. Python
email module that we use in that test supported it though


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29973 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent edab7a44
......@@ -103,6 +103,8 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
# XXX the attachment name might change some day
if file_name == 'report_view':
self.assertEquals(content_type, self.content_type)
self.assertEquals('attachment; filename="report_view"',
part.get('Content-Disposition'))
data = part.get_payload(decode=True)
error_list = Validator().validate(data)
if error_list:
......
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