server/test/unittest_datafeed.py
changeset 9860 e24bf60428d3
parent 9798 1c105cf42904
child 9897 fa44db7da2dc
--- a/server/test/unittest_datafeed.py	Wed Jul 02 18:19:47 2014 +0200
+++ b/server/test/unittest_datafeed.py	Wed Jun 04 15:46:16 2014 +0200
@@ -90,11 +90,11 @@
                 self.assertEqual(self.repo._extid_cache['http://www.cubicweb.org/'],
                                  entity.eid)
 
-        self.assertEqual(dfsource.source_cwuris(self.session),
-                         {'http://www.cubicweb.org/': (entity.eid, 'Card')}
-                         )
-        self.assertTrue(dfsource.latest_retrieval)
-        self.assertTrue(dfsource.fresh())
+                self.assertEqual(dfsource.source_cwuris(cnx),
+                                 {'http://www.cubicweb.org/': (entity.eid, 'Card')}
+                             )
+                self.assertTrue(dfsource.latest_retrieval)
+                self.assertTrue(dfsource.fresh())
 
         # test_rename_source
         with self.admin_access.repo_cnx() as cnx: