[test] assertItemsEqual → assertCountEqual in unittest_repository.py
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 21 Mar 2016 13:55:29 +0100
changeset 11225 0f8301ea653b
parent 11221 2cbd81aa2c19
child 11226 6b0807ba056a
[test] assertItemsEqual → assertCountEqual in unittest_repository.py
cubicweb/server/test/unittest_repository.py
--- 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: