Commit e8478204 authored by Sebastien Robin's avatar Sebastien Robin

we must also check available inventory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12960 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6e014198
...@@ -300,6 +300,9 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin, ...@@ -300,6 +300,9 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
self.assertEqual(self.simulation_tool.getCurrentInventory( self.assertEqual(self.simulation_tool.getCurrentInventory(
payment=self.bank_account_2.getRelativeUrl() payment=self.bank_account_2.getRelativeUrl()
,resource=self.currency_1.getRelativeUrl()), 100000) ,resource=self.currency_1.getRelativeUrl()), 100000)
self.assertEqual(self.simulation_tool.getAvailableInventory(
payment=self.bank_account_2.getRelativeUrl()
,resource=self.currency_1.getRelativeUrl()), 80000)
self.assertEqual(self.simulation_tool.getFutureInventory( self.assertEqual(self.simulation_tool.getFutureInventory(
payment=self.bank_account_2.getRelativeUrl() payment=self.bank_account_2.getRelativeUrl()
,resource=self.currency_1.getRelativeUrl()), 80000) ,resource=self.currency_1.getRelativeUrl()), 80000)
......
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