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