web/test/unittest_views_apacherewrite.py
branchstable
changeset 6340 470d8e828fda
parent 5424 8ecbcbff9777
child 8695 358d8bed9626
--- a/web/test/unittest_views_apacherewrite.py	Fri Sep 24 18:20:57 2010 +0200
+++ b/web/test/unittest_views_apacherewrite.py	Fri Sep 24 18:20:59 2010 +0200
@@ -41,18 +41,18 @@
             urlrewriter.rewrite('logilab.fr', '/whatever', req)
             self.fail('redirect exception expected')
         except Redirect, ex:
-            self.assertEquals(ex.location, 'http://www.logilab.fr/whatever')
-        self.assertEquals(urlrewriter.rewrite('www.logilab.fr', '/whatever', req),
+            self.assertEqual(ex.location, 'http://www.logilab.fr/whatever')
+        self.assertEqual(urlrewriter.rewrite('www.logilab.fr', '/whatever', req),
                           '/whatever')
-        self.assertEquals(urlrewriter.rewrite('www.logilab.fr', '/json/bla', req),
+        self.assertEqual(urlrewriter.rewrite('www.logilab.fr', '/json/bla', req),
                           '/json/bla')
-        self.assertEquals(urlrewriter.rewrite('abcd.logilab.fr', '/json/bla', req),
+        self.assertEqual(urlrewriter.rewrite('abcd.logilab.fr', '/json/bla', req),
                           '/json/bla')
-        self.assertEquals(urlrewriter.rewrite('abcd.logilab.fr', '/data/bla', req),
+        self.assertEqual(urlrewriter.rewrite('abcd.logilab.fr', '/data/bla', req),
                           '/data/bla')
-        self.assertEquals(urlrewriter.rewrite('abcd.logilab.fr', '/whatever', req),
+        self.assertEqual(urlrewriter.rewrite('abcd.logilab.fr', '/whatever', req),
                           '/m_abcd/whatever')
-        self.assertEquals(urlrewriter.rewrite('abcd.fr', '/whatever', req),
+        self.assertEqual(urlrewriter.rewrite('abcd.fr', '/whatever', req),
                           '/whatever')