From eeca219a18146425eeeeee7aa64b777f61d63602 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Fri, 29 Feb 2008 14:37:57 +0000 Subject: [PATCH] Added subobject checking. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19593 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testAccounting.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/ERP5/tests/testAccounting.py b/product/ERP5/tests/testAccounting.py index f314d0fcbb..496d8470b9 100644 --- a/product/ERP5/tests/testAccounting.py +++ b/product/ERP5/tests/testAccounting.py @@ -3051,6 +3051,10 @@ class TestAccountingTransactionTemplate(AccountingTestCase): 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() -- 2.30.9