[Erp5-report] r30125 - /erp5/trunk/products/ERP5/tests/testOrder.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 29 16:29:15 CET 2009
Author: jerome
Date: Thu Oct 29 16:29:14 2009
New Revision: 30125
URL: http://svn.erp5.org?rev=30125&view=rev
Log:
tests that the order printout uses the order reference as filename
Modified:
erp5/trunk/products/ERP5/tests/testOrder.py
Modified: erp5/trunk/products/ERP5/tests/testOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testOrder.py?rev=30125&r1=30124&r2=30125&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testOrder.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testOrder.py [utf8] Thu Oct 29 16:29:14 2009
@@ -2574,6 +2574,7 @@
source_section_value=vendor,
destination_value=client,
destination_section_value=client)
+ order.setReference('OrderReference')
line = order.newContent(portal_type=self.order_line_portal_type,
resource_value=resource,
quantity=10,
@@ -2588,6 +2589,9 @@
err_list = odf_validator.validate(odt)
if err_list:
self.fail(''.join(err_list))
+ # The name of the printout is the reference of the order
+ content_disposition = self.portal.REQUEST.RESPONSE.getHeader('content-disposition')
+ self.assertEquals(content_disposition, 'inline;filename="OrderReference.odt"')
def test_Order_viewAsODT_person(self):
# test order printout with a person as destination
More information about the Erp5-report
mailing list