web/test/unittest_form.py
changeset 3998 94cc7cad3d2d
parent 3777 3ef8cdb5fb1c
parent 3953 19aefd78f61b
child 4172 4d4cef034eec
--- a/web/test/unittest_form.py	Mon Nov 23 14:13:53 2009 +0100
+++ b/web/test/unittest_form.py	Thu Dec 03 17:17:43 2009 +0100
@@ -95,7 +95,7 @@
         self.req.form['__linkto'] = 'in_group:%s:subject' % geid
         form = self.vreg['forms'].select('edition', self.req, entity=e)
         form.content_type = 'text/html'
-        pageinfo = self._check_html(form.form_render(), form, template=None)
+        pageinfo = self._check_html(form.render(), form, template=None)
         inputs = pageinfo.find_tag('select', False)
         self.failUnless(any(attrs for t, attrs in inputs if attrs.get('name') == 'in_group:A'))
         inputs = pageinfo.find_tag('input', False)
@@ -126,14 +126,14 @@
             creation_date = DateTimeField(widget=DateTimePicker)
         form = CustomChangeStateForm(self.req, redirect_path='perdu.com',
                                      entity=self.entity)
-        form.form_render(state=123, trcomment=u'',
-                         trcomment_format=u'text/plain')
+        form.render(formvalues=dict(state=123, trcomment=u'',
+                                    trcomment_format=u'text/plain'))
 
     def test_change_state_form(self):
         form = ChangeStateForm(self.req, redirect_path='perdu.com',
                                entity=self.entity)
-        form.form_render(state=123, trcomment=u'',
-                         trcomment_format=u'text/plain')
+        form.render(formvalues=dict(state=123, trcomment=u'',
+                                    trcomment_format=u'text/plain'))
 
     # fields tests ############################################################