web/test/unittest_views_pyviews.py
changeset 2650 18aec79ec3a3
parent 2058 7ef12c03447c
child 2773 b2530e3e0afb
--- a/web/test/unittest_views_pyviews.py	Mon Aug 03 09:37:13 2009 +0200
+++ b/web/test/unittest_views_pyviews.py	Mon Aug 03 10:50:57 2009 +0200
@@ -4,9 +4,9 @@
 class PyViewsTC(EnvBasedTC):
 
     def test_pyvaltable(self):
-        content = self.vreg.render('pyvaltable', self.request(),
-                                   pyvalue=[[1, 'a'], [2, 'b']],
-                                   headers=['num', 'char'])
+        content = self.vreg['views'].render('pyvaltable', self.request(),
+                                            pyvalue=[[1, 'a'], [2, 'b']],
+                                            headers=['num', 'char'])
         self.assertEquals(content.strip(), '''<table class="listing">
 <tr><th>num</th><th>char</th></tr>
 <tr><td>1</td><td>a</td></tr>
@@ -14,8 +14,8 @@
 </table>''')
 
     def test_pyvallist(self):
-        content = self.vreg.render('pyvallist', self.request(),
-                                   pyvalue=[1, 'a'])
+        content = self.vreg['views'].render('pyvallist', self.request(),
+                                            pyvalue=[1, 'a'])
         self.assertEquals(content.strip(), '''<ul>
 <li>1</li>
 <li>a</li>