[Erp5-report] r30178 - /erp5/trunk/products/ERP5/tests/testInvoice.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 30 18:14:31 CET 2009
Author: kazuhiko
Date: Fri Oct 30 18:14:29 2009
New Revision: 30178
URL: http://svn.erp5.org?rev=30178&view=rev
Log:
test if source_project and destination_project are propagated.
Modified:
erp5/trunk/products/ERP5/tests/testInvoice.py
Modified: erp5/trunk/products/ERP5/tests/testInvoice.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInvoice.py?rev=30178&r1=30177&r2=30178&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] Fri Oct 30 18:14:29 2009
@@ -80,7 +80,8 @@
def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
- 'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_apparel')
+ 'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_apparel',
+ 'erp5_project')
def createCategories(self):
"""Create the categories for our test. """
@@ -217,6 +218,8 @@
self.stepCreateOrganisation1(sequence, **kw)
self.stepCreateOrganisation2(sequence, **kw)
self.stepCreateOrganisation3(sequence, **kw)
+ self.stepCreateProject1(sequence, **kw)
+ self.stepCreateProject2(sequence, **kw)
vendor = sequence.get('organisation1')
vendor.setRegion(self.default_region)
vendor.validate()
@@ -1940,12 +1943,18 @@
invoice.getDestinationSection())
self.assertEquals(packing_list.getSourceSection(), \
invoice.getSourceSection())
+ self.assertEquals(packing_list.getDestinationDecision(), \
+ invoice.getDestinationDecision())
self.assertEquals(packing_list.getSourceDecision(), \
invoice.getSourceDecision())
self.assertEquals(packing_list.getDestinationAdministration(), \
invoice.getDestinationAdministration())
self.assertEquals(packing_list.getSourceAdministration(), \
invoice.getSourceAdministration())
+ self.assertEquals(packing_list.getDestinationProject(), \
+ invoice.getDestinationProject())
+ self.assertEquals(packing_list.getSourceProject(), \
+ invoice.getSourceProject())
self.assertEquals(packing_list.getPriceCurrency(), \
invoice.getPriceCurrency())
More information about the Erp5-report
mailing list