[web test] fix unittest_web stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 15 Jun 2011 19:22:05 +0200
branchstable
changeset 7518 2431e3e9a4f2
parent 7517 a05bad3aec2e
child 7519 4e531c8697f8
[web test] fix unittest_web
web/test/unittest_web.py
--- a/web/test/unittest_web.py	Wed Jun 15 19:19:36 2011 +0200
+++ b/web/test/unittest_web.py	Wed Jun 15 19:22:05 2011 +0200
@@ -38,7 +38,7 @@
         self.failUnless(url.endswith('()'))
         cbname = url.split()[1][:-2]
         self.assertMultiLineEqual(
-            'function %s() { $("#foo").loadxhtml("http://testing.fr/cubicweb/json?%s",null,"get","replace"); }' % (cbname, qs),
+            'function %s() { $("#foo").loadxhtml("http://testing.fr/cubicweb/json?%s",{"pageid": "%s"},"get","replace"); }' % (cbname, qs, req.pageid),
             req.html_headers.post_inlined_scripts[0])
 
 if __name__ == '__main__':