web/test/unittest_formfields.py
changeset 3536 f6c9a5df80fb
parent 3369 7b88d12b4ee2
parent 3535 106b95ec1144
child 4084 69739e6ebd2a
--- a/web/test/unittest_formfields.py	Tue Sep 29 15:58:44 2009 +0200
+++ b/web/test/unittest_formfields.py	Wed Sep 30 18:57:42 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'])