[Erp5-report] r29973 - /erp5/trunk/products/ERP5OOo/tests/testDeferredStyle.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 23 15:13:16 CEST 2009
Author: jerome
Date: Fri Oct 23 15:13:16 2009
New Revision: 29973
URL: http://svn.erp5.org?rev=29973&view=rev
Log:
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
Modified:
erp5/trunk/products/ERP5OOo/tests/testDeferredStyle.py
Modified: erp5/trunk/products/ERP5OOo/tests/testDeferredStyle.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDeferredStyle.py?rev=29973&r1=29972&r2=29973&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDeferredStyle.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDeferredStyle.py [utf8] Fri Oct 23 15:13:16 2009
@@ -103,6 +103,8 @@
# 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:
More information about the Erp5-report
mailing list