diff --git a/product/ERP5Type/tests/testCopySupport.py b/product/ERP5Type/tests/testCopySupport.py index 89efdaed4e353cee37aa5e0aef5fd7e8f153b3fb..8456718fcea780bdbe700d7c8c703367a611b73b 100644 --- a/product/ERP5Type/tests/testCopySupport.py +++ b/product/ERP5Type/tests/testCopySupport.py @@ -89,9 +89,13 @@ class TestCopySupport(ERP5TypeTestCase): person = self.portal.person_module.newContent(portal_type='Person', address_city='Lille') self.tic() + getPath = self.portal.portal_catalog.getPath + address = person.default_address + self.assertEqual(address.getPath(), getPath(address.getUid())) person.recursiveReindexObject() - person.default_address.setId('old_address') + address.setId('old_address') self.tic() + self.assertEqual(address.getPath(), getPath(address.getUid())) def test_03_unindexObjectGrouping(self): person = self.portal.person_module.newContent(portal_type='Person',