[Erp5-report] r25207 - /erp5/trunk/products/ERP5/tests/testImmobilisation.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 20 17:23:04 CET 2009


Author: nicolas
Date: Tue Jan 20 17:23:03 2009
New Revision: 25207

URL: http://svn.erp5.org?rev=25207&view=rev
Log:
validate Rules

Modified:
    erp5/trunk/products/ERP5/tests/testImmobilisation.py

Modified: erp5/trunk/products/ERP5/tests/testImmobilisation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testImmobilisation.py?rev=25207&r1=25206&r2=25207&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testImmobilisation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testImmobilisation.py [utf8] Tue Jan 20 17:23:03 2009
@@ -230,6 +230,7 @@
     self.createOrganisationList()
     self.createAccountList()
     self.createItemList()
+    self.validateRuleList()
     get_transaction().commit()
     self.tic()
 
@@ -420,6 +421,11 @@
       for i in range(30):
         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()




More information about the Erp5-report mailing list