test/unittest_rset.py
changeset 5174 78438ad513ca
parent 4951 7dc54e12c606
child 5423 e15abfdcce38
--- a/test/unittest_rset.py	Wed Apr 07 09:24:00 2010 +0200
+++ b/test/unittest_rset.py	Wed Apr 07 14:26:35 2010 +0200
@@ -212,7 +212,7 @@
     def test_get_entity_simple(self):
         self.request().create_entity('CWUser', login=u'adim', upassword='adim',
                         surname=u'di mascio', firstname=u'adrien')
-        e = self.entity('Any X,T WHERE X login "adim", X surname T')
+        e = self.execute('Any X,T WHERE X login "adim", X surname T').get_entity(0, 0)
         self.assertEquals(e['surname'], 'di mascio')
         self.assertRaises(KeyError, e.__getitem__, 'firstname')
         self.assertRaises(KeyError, e.__getitem__, 'creation_date')