[repo test] fix test regression introduced by 8286:8b0146e31baa stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 01 Mar 2012 14:32:42 +0100
branchstable
changeset 8289 c17d855bd95b
parent 8288 50a683f2768c
child 8290 d07dadd8f664
[repo test] fix test regression introduced by 8286:8b0146e31baa
server/test/unittest_multisources.py
--- a/server/test/unittest_multisources.py	Thu Mar 01 13:42:30 2012 +0100
+++ b/server/test/unittest_multisources.py	Thu Mar 01 14:32:42 2012 +0100
@@ -337,7 +337,7 @@
         ceid = cu.execute('INSERT Card X: X title "without wikiid to get eid based url"')[0][0]
         self.cnx2.commit()
         lc = self.sexecute('Card X WHERE X title "without wikiid to get eid based url"').get_entity(0, 0)
-        self.assertEqual(lc.absolute_url(), 'http://extern.org/card/eid/%s' % ceid)
+        self.assertEqual(lc.absolute_url(), 'http://extern.org/%s' % ceid)
         cu.execute('DELETE Card X WHERE X eid %(x)s', {'x':ceid})
         self.cnx2.commit()
 
@@ -346,7 +346,7 @@
         ceid = cu.execute('INSERT Card X: X title "without wikiid to get eid based url"')[0][0]
         self.cnx3.commit()
         lc = self.sexecute('Card X WHERE X title "without wikiid to get eid based url"').get_entity(0, 0)
-        self.assertEqual(lc.absolute_url(), 'http://testing.fr/cubicweb/card/eid/%s' % lc.eid)
+        self.assertEqual(lc.absolute_url(), 'http://testing.fr/cubicweb/%s' % lc.eid)
         cu.execute('DELETE Card X WHERE X eid %(x)s', {'x':ceid})
         self.cnx3.commit()