From e8478204d94fa910019093b507fc51a96f99b385 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 22 Feb 2007 12:00:31 +0000
Subject: [PATCH] we must also check available inventory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12960 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Banking/tests/testERP5BankingStopPayment.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/ERP5Banking/tests/testERP5BankingStopPayment.py b/product/ERP5Banking/tests/testERP5BankingStopPayment.py
index f28760db8e..a5ba627f84 100755
--- a/product/ERP5Banking/tests/testERP5BankingStopPayment.py
+++ b/product/ERP5Banking/tests/testERP5BankingStopPayment.py
@@ -300,6 +300,9 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
     self.assertEqual(self.simulation_tool.getCurrentInventory(
                      payment=self.bank_account_2.getRelativeUrl()
                      ,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(
                      payment=self.bank_account_2.getRelativeUrl()
                      ,resource=self.currency_1.getRelativeUrl()), 80000)
-- 
2.30.9