Beispiel #1
0
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>'
Beispiel #2
0
 def test_doc2htmlBoring(self):
     if html.EPYTEXT:
         html.EPYTEXT = False
     assert html.doc2html(object(), 'Woot\nYeah') == '<pre>Woot\nYeah</pre>'
Beispiel #3
0
def test_summaryDoc():
    docco = model.Documentable(None, 'threadz', 'Woot\nYeah')
    assert html.summaryDoc(docco) == html.doc2html(docco, 'Woot')
Beispiel #4
0
 def test_doc2htmlBoring(self):
     if html.EPYTEXT:
         html.EPYTEXT = False
     assert html.doc2html(object(), "Woot\nYeah") == "<pre>Woot\nYeah</pre>"
Beispiel #5
0
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>"
Beispiel #6
0
def test_summaryDoc():
    docco = model.Documentable(None, "threadz", "Woot\nYeah")
    assert html.summaryDoc(docco) == html.doc2html(docco, "Woot")
Beispiel #7
0
def test_summaryDoc():
    docco = model.Documentable(None, 'threadz', 'Woot\nYeah')
    assert html.summaryDoc(docco) == html.doc2html(docco, 'Woot')