--- a/web/test/unittest_form.py Tue Sep 29 12:42:11 2009 +0200
+++ b/web/test/unittest_form.py Tue Sep 29 12:42:24 2009 +0200
@@ -171,7 +171,7 @@
class FFForm(EntityFieldsForm):
data = FileField(format_field=StringField(name='data_format', max_length=50),
encoding_field=StringField(name='data_encoding', max_length=20))
- file = self.add_entity('File', name=u"pouet.txt", data_encoding=u'UTF-8',
+ file = self.add_entity('File', data_name=u"pouet.txt", data_encoding=u'UTF-8',
data=Binary('new widgets system'))
form = FFForm(self.req, redirect_path='perdu.com', entity=file)
self.assertTextEquals(self._render_entity_field('data', form),
@@ -195,7 +195,7 @@
return 'ascii'
def form_field_format(self, field):
return 'text/plain'
- file = self.add_entity('File', name=u"pouet.txt", data_encoding=u'UTF-8',
+ file = self.add_entity('File', data_name=u"pouet.txt", data_encoding=u'UTF-8',
data=Binary('new widgets system'))
form = EFFForm(self.req, redirect_path='perdu.com', entity=file)
self.assertTextEquals(self._render_entity_field('data', form),