diff -r 4eb33ee29c84 -r b7ec030a5e10 test/unittest_entity.py --- a/test/unittest_entity.py Wed Oct 14 15:59:00 2009 +0200 +++ b/test/unittest_entity.py Wed Oct 14 16:30:46 2009 +0200 @@ -470,17 +470,19 @@ def test_create_entity(self): p1 = self.add_entity('Personne', nom=u'fayolle', prenom=u'alexandre') + p2 = self.add_entity('Personne', nom=u'campeas', prenom=u'aurelien') note = self.add_entity('Note', type=u'z') req = self.request() p = req.create_entity('Personne', nom=u'di mascio', prenom=u'adrien', - connait=p1, evaluee=p1, + connait=p1, evaluee=[p1, p2], reverse_ecrit_par=note) self.assertEquals(p.nom, 'di mascio') self.assertEquals([c.nom for c in p.connait], ['fayolle']) - self.assertEquals([c.nom for c in p.evaluee], ['fayolle']) + self.assertEquals(sorted([c.nom for c in p.evaluee]), ['campeas', 'fayolle']) self.assertEquals([c.type for c in p.reverse_ecrit_par], ['z']) + if __name__ == '__main__': from logilab.common.testlib import unittest_main unittest_main()