Commit 0b6f2afc authored by Aurel's avatar Aurel

add missing method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13926 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1fc09c7e
...@@ -75,7 +75,6 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -75,7 +75,6 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
Method called before the launch of the test to initialize some data Method called before the launch of the test to initialize some data
""" """
TestBaobabMixin.afterSetUp(self)
# Set some variables : # Set some variables :
self.initDefaultVariable() self.initDefaultVariable()
...@@ -153,6 +152,18 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -153,6 +152,18 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase):
def stepLoginAsSuperUser(self, sequence=None, sequence_list=None, **kwd): def stepLoginAsSuperUser(self, sequence=None, sequence_list=None, **kwd):
self.login('super_user') 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): def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
""" """
Check that all the objects we created in afterSetUp or Check that all the objects we created in afterSetUp or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment