web/test/unittest_web.py
changeset 7791 31bb51ea5485
parent 7518 2431e3e9a4f2
child 8728 75be9de9d68e
--- 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),