From 68c4ee65de47cfb65a80e711d7cbe540ced0017e Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Wed, 21 Feb 2007 14:04:14 +0000
Subject: [PATCH] Add a function to allow account incident module cleanup.

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

diff --git a/product/ERP5Banking/tests/testERP5BankingAccountIncident.py b/product/ERP5Banking/tests/testERP5BankingAccountIncident.py
index 47e1e049b7..0cd6465cda 100755
--- a/product/ERP5Banking/tests/testERP5BankingAccountIncident.py
+++ b/product/ERP5Banking/tests/testERP5BankingAccountIncident.py
@@ -177,6 +177,12 @@ class TestERP5BankingAccountIncident(TestERP5BankingMixin, ERP5TypeTestCase):
     # open counter date
     self.openCounterDate(site=self.paris)
 
+  def stepCleanupObjects(self, sequence=None, sequence_list=None, **kwd):
+    """
+    Cleanup account_incident_module after a sequence execution so that
+    stepCheckObjects can succeed.
+    """
+    self.account_incident_module.manage_delObjects(ids=[x for x in self.account_incident_module.objectIds()])
 
   def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
     """
-- 
2.30.9