From fd833f4d0620b187f4aa1296594977e538694795 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Tue, 20 Jan 2009 16:23:03 +0000 Subject: [PATCH] validate Rules git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25207 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testImmobilisation.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5/tests/testImmobilisation.py b/product/ERP5/tests/testImmobilisation.py index 568cdc8f4e..cf6050e546 100644 --- a/product/ERP5/tests/testImmobilisation.py +++ b/product/ERP5/tests/testImmobilisation.py @@ -230,6 +230,7 @@ class TestImmobilisationMixin(ERP5TypeTestCase): self.createOrganisationList() self.createAccountList() self.createItemList() + self.validateRuleList() get_transaction().commit() self.tic() @@ -421,6 +422,11 @@ class TestImmobilisationMixin(ERP5TypeTestCase): item_id = 'item%i' % i item_module.newContent(id=item_id, reference='%i' % i) + def validateRuleList(self): + portal_rules = self.getRuleTool() + for rule in portal_rules.objectValues(): + rule.validate() + def stepTic(self, sequence=None, sequence_list=None, **kw): self.tic() -- 2.30.9