Beispiel #1
0
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>')
Beispiel #2
0
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>'
        )
Beispiel #3
0
 def setUp(self):
     self.woxt = WoxtProcessor(env)
Beispiel #4
0
 def setUp(self):
     self.woxt = WoxtProcessor(env)