diff -r 614762cdc357 -r 5f2c5eb1a820 test/unittest_entity.py --- a/test/unittest_entity.py Wed Oct 09 11:13:56 2013 +0200 +++ b/test/unittest_entity.py Thu Oct 10 13:26:11 2013 +0200 @@ -150,24 +150,24 @@ p1 = req.create_entity('Personne', nom=u'di') p2 = req.create_entity('Personne', nom=u'mascio') t = req.create_entity('Tag', name=u't0', tags=[]) - self.assertItemsEqual(t.tags, []) + self.assertCountEqual(t.tags, []) t = req.create_entity('Tag', name=u't1', tags=p1) - self.assertItemsEqual(t.tags, [p1]) + self.assertCountEqual(t.tags, [p1]) t = req.create_entity('Tag', name=u't2', tags=p1.eid) - self.assertItemsEqual(t.tags, [p1]) + self.assertCountEqual(t.tags, [p1]) t = req.create_entity('Tag', name=u't3', tags=[p1, p2.eid]) - self.assertItemsEqual(t.tags, [p1, p2]) + self.assertCountEqual(t.tags, [p1, p2]) def test_cw_instantiate_reverse_relation(self): req = self.request() t1 = req.create_entity('Tag', name=u't1') t2 = req.create_entity('Tag', name=u't2') p = req.create_entity('Personne', nom=u'di mascio', reverse_tags=t1) - self.assertItemsEqual(p.reverse_tags, [t1]) + self.assertCountEqual(p.reverse_tags, [t1]) p = req.create_entity('Personne', nom=u'di mascio', reverse_tags=t1.eid) - self.assertItemsEqual(p.reverse_tags, [t1]) + self.assertCountEqual(p.reverse_tags, [t1]) p = req.create_entity('Personne', nom=u'di mascio', reverse_tags=[t1, t2.eid]) - self.assertItemsEqual(p.reverse_tags, [t1, t2]) + self.assertCountEqual(p.reverse_tags, [t1, t2]) def test_fetch_rql(self): user = self.user()