web/test/unittest_formfields.py
branchstable
changeset 3535 106b95ec1144
parent 3334 8d831c02da9a
child 3536 f6c9a5df80fb
child 4212 ab6573088b4a
--- 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'])