[Erp5-report] r33354 kazuhiko - /erp5/trunk/products/ERP5/tests/testAccountingRules.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 4 06:09:53 CET 2010


Author: kazuhiko
Date: Thu Mar  4 06:09:53 2010
New Revision: 33354

URL: http://svn.erp5.org?rev=33354&view=rev
Log:
recreate predicate and accounting cells only without touching existing mapped property or divergence testers.

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

Modified: erp5/trunk/products/ERP5/tests/testAccountingRules.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccountingRules.py?rev=33354&r1=33353&r2=33354&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccountingRules.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testAccountingRules.py [utf8] Thu Mar  4 06:09:53 2010
@@ -507,9 +507,8 @@
     # clear the message queue, so that it does not contains unexistant paths
     self.tic()
     payment_rule.deleteContent(
-      [x.getId() for x in payment_rule.objectValues() if \
-       x.getPortalType() == self.predicate_portal_type])
-    self.assertEquals(len(payment_rule.objectValues()), 1)
+      [x.getId() for x in payment_rule.objectValues(
+      portal_type=['Predicate', self.accounting_rule_cell_portal_type])])
     transaction.commit()
 
     # and add a new predicate




More information about the Erp5-report mailing list