def test_doc2htmlEpy(): if not html.EPYTEXT: raise SkipTest("Epytext not available") assert html.doc2html(None, 'Woot\nYeah') == '<div><p>Woot Yeah</p>\n</div>'
def test_doc2htmlBoring(self): if html.EPYTEXT: html.EPYTEXT = False assert html.doc2html(object(), 'Woot\nYeah') == '<pre>Woot\nYeah</pre>'
def test_summaryDoc(): docco = model.Documentable(None, 'threadz', 'Woot\nYeah') assert html.summaryDoc(docco) == html.doc2html(docco, 'Woot')
def test_doc2htmlBoring(self): if html.EPYTEXT: html.EPYTEXT = False assert html.doc2html(object(), "Woot\nYeah") == "<pre>Woot\nYeah</pre>"
def test_doc2htmlEpy(): if not html.EPYTEXT: raise SkipTest("Epytext not available") assert html.doc2html(None, "Woot\nYeah") == "<div><p>Woot Yeah</p>\n</div>"
def test_summaryDoc(): docco = model.Documentable(None, "threadz", "Woot\nYeah") assert html.summaryDoc(docco) == html.doc2html(docco, "Woot")