class TestWoxtProcessor(unittest.TestCase): def setUp(self): self.woxt = WoxtProcessor(env) def test_font_styles(self): self.assertEqual(self.woxt.to_html(STYLES_TEST), STYLES_TEST_RESULT) def test_headlines(self): self.assertEqual(self.woxt.to_html(HEADLINES_TEST), HEADLINES_TEST_RESULT) def test_links(self): self.assertEqual( self.woxt.to_html(u'[http://webshox.org]'), u'<a href="http://webshox.org">http://webshox.org</a>')
class TestWoxtProcessor(unittest.TestCase): def setUp(self): self.woxt = WoxtProcessor(env) def test_font_styles(self): self.assertEqual( self.woxt.to_html(STYLES_TEST), STYLES_TEST_RESULT ) def test_headlines(self): self.assertEqual( self.woxt.to_html(HEADLINES_TEST), HEADLINES_TEST_RESULT ) def test_links(self): self.assertEqual( self.woxt.to_html(u'[http://webshox.org]'), u'<a href="http://webshox.org">http://webshox.org</a>' )
def setUp(self): self.woxt = WoxtProcessor(env)