[Erp5-report] r15580 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 9 15:06:44 CEST 2007


Author: vincent
Date: Thu Aug  9 15:06:44 2007
New Revision: 15580

URL: http://svn.erp5.org?rev=15580&view=rev
Log:
Make headquaters-initiated mutilated_banknote source check configurable.

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py?rev=15580&r1=15579&r2=15580&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py Thu Aug  9 15:06:44 2007
@@ -443,7 +443,8 @@
     # maculated banknote inventory contains no 10000 banknote
     self.checkBanknoteInventory(node_path=self.hq_maculated_banknote_vault.getRelativeUrl(), quantity=0.0)
 
-  def stepCreateHQMutilatedBanknote(self, sequence=None, sequence_list=None, **kwd):
+  def stepCreateHQMutilatedBanknote(self, sequence=None, sequence_list=None,
+      owner_assigned_counter='site/testsite/siege/surface/banque_interne/guichet_1', **kwd):
     """
     Create a mutilated banknote document and check it
     """
@@ -458,7 +459,7 @@
     self.stepTic()
     self.assertEqual(len(self.mutilated_banknote_module.objectValues()), 2)
     self.assertEqual(self.hq_mutilated_banknote.getPortalType(), 'Mutilated Banknote')
-    self.assertEqual(self.hq_mutilated_banknote.getSource(), 'site/testsite/siege/surface/banque_interne/guichet_1')
+    self.assertEqual(self.hq_mutilated_banknote.getSource(), owner_assigned_counter)
     self.assertEqual(self.hq_mutilated_banknote.getSourceTrade(), 'site/testsite/paris')
     self.assertEqual(self.hq_mutilated_banknote.getDestination(), self.hq_mutilated_banknote_vault.getRelativeUrl())
     # set source reference




More information about the Erp5-report mailing list