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