예제 #1
0
파일: test_html.py 프로젝트: paetzke/orgco
def test_header00():
    html = convert(OrgDoc(load_data('header00.org')), 'html')
    expected = ['<h1>header1</h1>', '']
    assert html == expected
예제 #2
0
파일: test_rst.py 프로젝트: paetzke/orgco
def test_header00():
    rst = convert(OrgDoc(load_data('header00.org')), 'rst')
    expected = ['header1', '=======', '']
    assert rst == expected
예제 #3
0
파일: test_html.py 프로젝트: paetzke/orgco
def assertOrgAndHtmlEqual(orgfile, htmlfile):
    html = convert(OrgDoc(load_data(orgfile)), 'html')
    expected = load(htmlfile)
    assert html == expected
예제 #4
0
파일: test_rst.py 프로젝트: paetzke/orgco
def assertOrgAndRstEqual(orgfile, rstfile):
    rst = convert(OrgDoc(load_data(orgfile)), 'rst')
    expected = load(rstfile)
    assert rst == expected