more test stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 30 Sep 2009 17:57:02 +0200
branchstable
changeset 3535 106b95ec1144
parent 3534 81cfec545e1b
child 3536 f6c9a5df80fb
child 3537 73b5bec579ba
more test
web/test/unittest_formfields.py
--- a/web/test/unittest_formfields.py	Wed Sep 30 17:56:53 2009 +0200
+++ b/web/test/unittest_formfields.py	Wed Sep 30 17:57:02 2009 +0200
@@ -80,12 +80,15 @@
         self.assertEquals(data_format_field, None)
         data_encoding_field = guess_field(schema['File'], schema['data_encoding'])
         self.assertEquals(data_encoding_field, None)
+        data_name_field = guess_field(schema['File'], schema['data_name'])
+        self.assertEquals(data_name_field, None)
 
         data_field = guess_field(schema['File'], schema['data'])
         self.assertIsInstance(data_field, FileField)
         self.assertEquals(data_field.required, True)
         self.assertIsInstance(data_field.format_field, StringField)
         self.assertIsInstance(data_field.encoding_field, StringField)
+        self.assertIsInstance(data_field.name_field, StringField)
 
     def test_constraints_priority(self):
         salesterm_field = guess_field(schema['Salesterm'], schema['reason'])