web/test/unittest_form.py
changeset 2058 7ef12c03447c
parent 2005 e8032965f37a
child 2144 51c84d585456
--- a/web/test/unittest_form.py	Fri Jun 05 15:06:55 2009 +0200
+++ b/web/test/unittest_form.py	Fri Jun 05 15:09:20 2009 +0200
@@ -88,7 +88,7 @@
         e.req = self.req
         geid = self.execute('CWGroup X WHERE X name "users"')[0][0]
         self.req.form['__linkto'] = 'in_group:%s:subject' % geid
-        form = self.vreg.select_object('forms', 'edition', self.req, None, entity=e)
+        form = self.vreg.select('forms', 'edition', self.req, entity=e)
         form.content_type = 'text/html'
         pageinfo = self._check_html(form.form_render(), form, template=None)
         inputs = pageinfo.find_tag('select', False)