Commit e21b9e1e authored by Ivan Tyagov's avatar Ivan Tyagov

Order of objects returned by catalog(mysql) is not guaranteed so adjust test.

parent 6e5debcb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment