Commit 63863359 authored by Jérome Perrin's avatar Jérome Perrin

field.render and form.render prefer to get a REQUEST argument


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30888 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 818ef857
......@@ -357,10 +357,12 @@ class SerializeTestCase(unittest.TestCase):
# XXX test if values are the same
self.assertEquals(field.values, field2.values)
# test if default renderings are the same
self.assertEquals(field.render(), field2.render())
self.assertEquals(field.render(REQUEST=request),
field2.render(REQUEST=request))
# brute force compare ...
self.assertEquals(form.render(), form2.render())
self.assertEquals(form.render(REQUEST=request),
form2.render(REQUEST=request))
request.clear()
request['field_int_field'] = '42'
request['field_float_field'] = '2.71828'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment