[Erp5-report] r32042 kazuhiko - /erp5/trunk/products/ERP5/tests/testOrder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 27 21:21:07 CET 2010


Author: kazuhiko
Date: Wed Jan 27 21:21:07 2010
New Revision: 32042

URL: http://svn.erp5.org?rev=32042&view=rev
Log:
create bank accounts and use them as source_payment and destination_payment.

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=32042&r1=32041&r2=32042&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testOrder.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testOrder.py [utf8] Wed Jan 27 21:21:07 2010
@@ -225,6 +225,8 @@
                                    portal_type=organisation_portal_type)
     organisation = organisation_module.newContent( \
                                    portal_type=organisation_portal_type)
+    bank_account = organisation.newContent(id='bank',
+                                           portal_type='Bank Account')
     if title is None:
       organisation.edit(title='organisation%s' % organisation.getId())
       sequence.edit(organisation=organisation)
@@ -906,8 +908,10 @@
     order = sequence.get('order')
     order.edit( source_value = organisation1,
                 source_section_value = organisation1,
+                source_payment_value = organisation1['bank'],
                 destination_value = organisation2,
                 destination_section_value = organisation2,
+                destination_payment_value = organisation2['bank'],
                 source_project_value = project1,
                 destination_project_value = project2 )
     self.failUnless('Site Error' not in order.view())




More information about the Erp5-report mailing list