--- a/cubicweb/server/test/unittest_repository.py Mon Mar 21 10:53:44 2016 +0100
+++ b/cubicweb/server/test/unittest_repository.py Mon Mar 21 13:55:29 2016 +0100
@@ -60,8 +60,8 @@
def test_unique_together_schema(self):
person = self.repo.schema.eschema('Personne')
self.assertEqual(len(person._unique_together), 1)
- self.assertItemsEqual(person._unique_together[0],
- ('nom', 'prenom', 'inline2'))
+ self.assertCountEqual(person._unique_together[0],
+ ('nom', 'prenom', 'inline2'))
def test_all_entities_have_owner(self):
with self.admin_access.repo_cnx() as cnx:
@@ -405,7 +405,7 @@
self.assertEqual(len(rows), 3)
person = self.repo.schema.eschema('Personne')
self.assertEqual(len(person._unique_together), 1)
- self.assertItemsEqual(person._unique_together[0],
+ self.assertCountEqual(person._unique_together[0],
('nom', 'prenom', 'inline2'))
finally: