web/test/unittest_views_pyviews.py
branchstable
changeset 6340 470d8e828fda
parent 5424 8ecbcbff9777
child 7992 4ff9f25cb06e
--- a/web/test/unittest_views_pyviews.py	Fri Sep 24 18:20:57 2010 +0200
+++ b/web/test/unittest_views_pyviews.py	Fri Sep 24 18:20:59 2010 +0200
@@ -25,7 +25,7 @@
                                          pyvalue=[[1, 'a'], [2, 'b']])
         content = view.render(pyvalue=[[1, 'a'], [2, 'b']],
                               headers=['num', 'char'])
-        self.assertEquals(content.strip(), '''<table class="listing">
+        self.assertEqual(content.strip(), '''<table class="listing">
 <thead><tr><th>num</th><th>char</th></tr>
 </thead><tbody><tr><td>1</td><td>a</td></tr>
 <tr><td>2</td><td>b</td></tr>
@@ -35,7 +35,7 @@
         view = self.vreg['views'].select('pyvallist', self.request(),
                                          pyvalue=[1, 'a'])
         content = view.render(pyvalue=[1, 'a'])
-        self.assertEquals(content.strip(), '''<ul>
+        self.assertEqual(content.strip(), '''<ul>
 <li>1</li>
 <li>a</li>
 </ul>''')