Beispiel #1
0
    def test_header(self):
        self.assertEqual(
            markup.h('Test', 3, 'foo bar'),
            '<h3 class="foo bar">Test</h3>\n'
            )

        self.assertEqual(
            markup.h('Test', '2'),
            '<h2>Test</h2>\n'
            )

        self.assertEqual(
            markup.h('', 4, 'foo'),
            '<h4 class="foo"></h4>\n'
            )
Beispiel #2
0
 def render_html(self):
     return markup.h(self.text, self.h_order, self.css)