--- a/web/test/unittest_web.py Wed Sep 14 09:10:58 2011 +0200
+++ b/web/test/unittest_web.py Wed Sep 14 09:11:50 2011 +0200
@@ -34,8 +34,8 @@
arurl = req.ajax_replace_url
# NOTE: for the simplest use cases, we could use doctest
url = arurl('foo', **kwargs)
- self.failUnless(url.startswith('javascript:'))
- self.failUnless(url.endswith('()'))
+ self.assertTrue(url.startswith('javascript:'))
+ self.assertTrue(url.endswith('()'))
cbname = url.split()[1][:-2]
self.assertMultiLineEqual(
'function %s() { $("#foo").loadxhtml("http://testing.fr/cubicweb/json?%s",{"pageid": "%s"},"get","replace"); }' % (cbname, qs, req.pageid),