示例#1
0
 def test_create_from_dict(self):
     d = dict(wysiwyg_html='foo')
     tb = HTMLBlockWYSIWYG.create_from_dict(d)
     self.assertEqual(tb.wysiwyg_html, 'foo')
示例#2
0
 def test_add_form(self):
     f = HTMLBlockWYSIWYG.add_form()
     self.assertTrue('wysiwyg_html' in f.fields)