From 3e85229eaa42e461190e3f1d4f6f124d7102ff13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 23 Oct 2009 13:13:16 +0000 Subject: [PATCH] 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 --- product/ERP5OOo/tests/testDeferredStyle.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5OOo/tests/testDeferredStyle.py b/product/ERP5OOo/tests/testDeferredStyle.py index c973f68238..a7e7c6be8d 100644 --- a/product/ERP5OOo/tests/testDeferredStyle.py +++ b/product/ERP5OOo/tests/testDeferredStyle.py @@ -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: -- 2.30.9