[Erp5-report] r19593 - /erp5/trunk/products/ERP5/tests/testAccounting.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 29 15:37:57 CET 2008


Author: yusei
Date: Fri Feb 29 15:37:57 2008
New Revision: 19593

URL: http://svn.erp5.org?rev=19593&view=rev
Log:
Added subobject checking. 

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

Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=19593&r1=19592&r2=19593&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Fri Feb 29 15:37:57 2008
@@ -3051,6 +3051,10 @@
 
     self.assertEqual(len(preference.objectIds()), 1)
 
+    # make sure that subobjects are not unindexed after making template.
+    subobject_uid = document.objectValues()[0].getUid()
+    self.assertEqual(len(self.portal.portal_catalog(uid=subobject_uid)), 1)
+
     self.accounting_module.manage_delObjects(ids=[document.getId()])
 
     get_transaction().commit()




More information about the Erp5-report mailing list