[server/test] don't rely on a sorted output from .object_relations()
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 16 Feb 2015 10:54:48 +0100
changeset 10257 1925e7fe9412
parent 10256 f753f364550f
child 10258 61dfc689830a
[server/test] don't rely on a sorted output from .object_relations() Fixes test under python -R. Related to #4959402.
server/test/unittest_migractions.py
--- a/server/test/unittest_migractions.py	Mon Feb 16 10:21:29 2015 +0100
+++ b/server/test/unittest_migractions.py	Mon Feb 16 10:54:48 2015 +0100
@@ -259,8 +259,8 @@
                                'filed_under2', 'has_text',
                                'identity', 'in_basket', 'is', 'is_instance_of',
                                'modification_date', 'name', 'owned_by'])
-            self.assertEqual([str(rs) for rs in self.schema['Folder2'].object_relations()],
-                              ['filed_under2', 'identity'])
+            self.assertCountEqual([str(rs) for rs in self.schema['Folder2'].object_relations()],
+                                  ['filed_under2', 'identity'])
             # Old will be missing as it has been renamed into 'New' in the migrated
             # schema while New hasn't been added here.
             self.assertEqual(sorted(str(e) for e in self.schema['filed_under2'].subjects()),