[Erp5-report] r28931 - /erp5/trunk/products/ERP5OOo/tests/testDms.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 11 11:10:20 CEST 2009


Author: kazuhiko
Date: Fri Sep 11 11:10:16 2009
New Revision: 28931

URL: http://svn.erp5.org?rev=28931&view=rev
Log:
assert if OOoDocument_print works fine.

Modified:
    erp5/trunk/products/ERP5OOo/tests/testDms.py

Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=28931&r1=28930&r2=28931&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Fri Sep 11 11:10:16 2009
@@ -607,6 +607,13 @@
     self.assertEquals('attachment; filename="import_data_list.pdf"',
                       response.headers['content-disposition'])
 
+    # test Print icon works on OOoDocument
+    response = self.publish('%s/OOoDocument_print' % doc.getPath())
+    self.assertEquals('application/pdf',
+                      response.headers['content-type'])
+    self.assertEquals('attachment; filename="import_data_list.pdf"',
+                      response.headers['content-disposition'])
+
   def test_05_getCreationDate(self):
     """
     Check getCreationDate on all document type, as those documents 




More information about the Erp5-report mailing list