From ac7a20dec0252f84b276dbe39706d9b2b78b5848 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 25 Oct 2007 10:53:37 +0000
Subject: [PATCH] ERP5 documents doesn't have a comparator, so sorting is not
 guaranted. Use assertSameSet for comparision.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17182 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Catalog/tests/testERP5Catalog.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py
index b338af2b61..a85b4760e0 100644
--- a/product/ERP5Catalog/tests/testERP5Catalog.py
+++ b/product/ERP5Catalog/tests/testERP5Catalog.py
@@ -2024,9 +2024,8 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
     ctool = self.getCatalogTool()
 
     # by default, % in catalog search is a wildcard:
-    self.assertEquals(sorted([doc, other_doc]),
-      sorted([x.getObject() for x in 
-        ctool(portal_type='Organisation', title='Foo%')]))
+    self.assertSameSet([doc, other_doc], [x.getObject() for x in 
+        ctool(portal_type='Organisation', title='Foo%')])
     # ... but you can force searches with an exact match key
     self.assertEquals([doc], [x.getObject() for x in
        ctool(portal_type='Organisation', title=dict(query='Foo%',
-- 
2.30.9