diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py index 44e07ab54b85d8335bd1c4c4fab9301381c49d37..6dc203a9a43e46941ccf90786b67b5b199ad0503 100644 --- a/product/ERP5Catalog/tests/testERP5Catalog.py +++ b/product/ERP5Catalog/tests/testERP5Catalog.py @@ -4537,9 +4537,9 @@ CREATE TABLE alternate_roles_and_users ( # searches still work for other users self.login('ERP5TypeTestCase') - self.assertEquals(sorted([user1, user2]), - sorted([o.getObject() for o in - self.portal.portal_catalog(portal_type='Person')])) + self.assertSameSet([user1, user2], + [o.getObject() for o in + self.portal.portal_catalog(portal_type='Person')]) finally: # restore catalog configuration