web/test/unittest_form.py
changeset 6637 6bbfc628555b
parent 6340 470d8e828fda
child 7017 cd2ea273007a
--- a/web/test/unittest_form.py	Mon Oct 25 17:15:54 2010 +0200
+++ b/web/test/unittest_form.py	Mon Oct 25 17:15:55 2010 +0200
@@ -143,7 +143,7 @@
         state.eid = 'S'
         form = RTFForm(self.req, redirect_path='perdu.com', entity=state)
         # make it think it can use fck editor anyway
-        form.field_by_name('description', 'subject').format = lambda x: 'text/html'
+        form.field_by_name('description', 'subject').format = lambda form, field=None: 'text/html'
         self.assertMultiLineEqual(self._render_entity_field('description', form),
                               expected % {'eid': state.eid})