web/test/unittest_formfields.py
branchtls-sprint
changeset 1268 5db94912650b
parent 1265 e5cdd5c0dce3
child 1398 5fe84a5f7035
--- a/web/test/unittest_formfields.py	Tue Apr 07 17:19:22 2009 +0200
+++ b/web/test/unittest_formfields.py	Tue Apr 07 19:51:11 2009 +0200
@@ -28,6 +28,7 @@
         synopsis_field = guess_field(Card, schema['synopsis'])
         self.assertIsInstance(synopsis_field, TextField)
         self.assertEquals(synopsis_field.required, False)
+        self.assertEquals(synopsis_field.help, 'an abstract for this card')
         
         content_field = guess_field(Card, schema['content'])
         self.assertIsInstance(content_field, RichTextField)
@@ -61,12 +62,14 @@
         self.assertIsInstance(in_group_field, RelationField)
         self.assertEquals(in_group_field.required, True)
         self.assertEquals(in_group_field.role, 'subject')
+        self.assertEquals(in_group_field.help, 'groups grant permissions to the user')
 
         owned_by_field = guess_field(EUser, schema['owned_by'], 'object')
         self.assertIsInstance(owned_by_field, RelationField)
         self.assertEquals(owned_by_field.required, False)
         self.assertEquals(owned_by_field.role, 'object')
 
+
     def test_file_fields(self):
         data_format_field = guess_field(File, schema['data_format'])
         self.assertEquals(data_format_field, None)