[Erp5-report] r13926 - /erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 4 12:23:12 CEST 2007


Author: aurel
Date: Wed Apr  4 12:23:02 2007
New Revision: 13926

URL: http://svn.erp5.org?rev=13926&view=rev
Log:
add missing method

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

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py?rev=13926&r1=13925&r2=13926&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py Wed Apr  4 12:23:02 2007
@@ -75,7 +75,6 @@
     """
       Method called before the launch of the test to initialize some data
     """
-    TestBaobabMixin.afterSetUp(self)
     # Set some variables :
     self.initDefaultVariable()
 
@@ -153,6 +152,18 @@
   def stepLoginAsSuperUser(self, sequence=None, sequence_list=None, **kwd):
     self.login('super_user')
 
+  def stepCheckInitialInventory(self, sequence=None, sequence_list=None, **kwd):
+    """
+    Check the initial inventory before any operations
+    """
+    self.simulation_tool = self.getSimulationTool()
+    # check the inventory of the bank account
+    self.assertEqual(self.simulation_tool.getCurrentInventory(payment=self.bank_account_1.getRelativeUrl()), 100000)
+    self.assertEqual(self.simulation_tool.getFutureInventory(payment=self.bank_account_1.getRelativeUrl()), 100000)
+    # check the inventory of the bank account
+    self.assertEqual(self.simulation_tool.getCurrentInventory(payment=self.bank_account_2.getRelativeUrl()), 50000)
+    self.assertEqual(self.simulation_tool.getFutureInventory(payment=self.bank_account_2.getRelativeUrl()), 50000)
+
   def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
     """
     Check that all the objects we created in afterSetUp or




More information about the Erp5-report mailing list