[server/test] don't rely on a sorted output from .object_relations()
Fixes test under python -R. Related to #4959402.
--- 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()),