示例#1
0
def test_reallyBoringDocstring():
    undocced = '<pre class="undocumented">Undocumented</pre>'
    assert html.boringDocstring('') == undocced
    assert html.boringDocstring(None) == undocced
示例#2
0
def test_boringDocstring():
    assert html.boringDocstring('Woot\nYeah') == '<pre>Woot\nYeah</pre>'
示例#3
0
def test_boringDocstring():
    assert html.boringDocstring("Woot\nYeah") == "<pre>Woot\nYeah</pre>"
示例#4
0
def test_reallyBoringDocstring():
    undocced = '<pre class="undocumented">Undocumented</pre>'
    assert html.boringDocstring("") == undocced
    assert html.boringDocstring(None) == undocced
示例#5
0
def test_boringDocstring():
    assert html.boringDocstring('Woot\nYeah') == '<pre>Woot\nYeah</pre>'