devtools/testlib.py
branchtls-sprint
changeset 1773 789ee507a8e0
parent 1605 b239744627c7
child 1775 f450f1594992
--- a/devtools/testlib.py	Wed May 13 09:13:26 2009 +0200
+++ b/devtools/testlib.py	Wed May 13 10:12:03 2009 +0200
@@ -194,7 +194,7 @@
         else:
             self.set_description("testing %s, mod=%s (no rset)" % (vid, view.__module__))
         if template is None: # raw view testing, no template
-            viewfunc = view.dispatch
+            viewfunc = view.render
         else:
             templateview = self.vreg.select_view(template, req, rset, view=view, **kwargs)
             kwargs['view'] = view
@@ -327,7 +327,7 @@
         for action in self.list_actions_for(rset):
             yield InnerTest(self._testname(rset, action.id, 'action'), action.url)
         for box in self.list_boxes_for(rset):
-            yield InnerTest(self._testname(rset, box.id, 'box'), box.dispatch)
+            yield InnerTest(self._testname(rset, box.id, 'box'), box.render)
 
     @staticmethod
     def _testname(rset, objid, objtype):