web/test/unittest_formfields.py
branchtls-sprint
changeset 1265 e5cdd5c0dce3
parent 1104 58f27c3c0167
child 1268 5db94912650b
--- a/web/test/unittest_formfields.py	Tue Apr 07 17:17:55 2009 +0200
+++ b/web/test/unittest_formfields.py	Tue Apr 07 17:18:54 2009 +0200
@@ -32,10 +32,16 @@
         content_field = guess_field(Card, schema['content'])
         self.assertIsInstance(content_field, RichTextField)
         self.assertEquals(content_field.required, False)
-        
+        self.assertEquals(content_field.format_field, None)
+                          
         content_format_field = guess_field(Card, schema['content_format'])
         self.assertEquals(content_format_field, None)
         
+        content_format_field = guess_field(Card, schema['content_format'], skip_meta_attr=False)
+        self.assertEquals(content_format_field.internationalizable, True)
+        self.assertEquals(content_format_field.sort, True)
+        self.assertEquals(content_format_field.initial, 'text/rest')
+
         wikiid_field = guess_field(Card, schema['wikiid'])
         self.assertIsInstance(wikiid_field, StringField)
         self.assertEquals(wikiid_field.required, False)