Exemplo n.º 1
0
def test_find_title():
    title, content = format_post_from_string("""
Title Goes Here
===============

this is the rest of the body
""")
    assert title == 'Title Goes Here'
    return
Exemplo n.º 2
0
def test_find_title():
    title, content = format_post_from_string("""
Title Goes Here
===============

this is the rest of the body
""")
    assert title == 'Title Goes Here'
    return
Exemplo n.º 3
0
def test_find_body():
    title, content = format_post_from_string("""
Title Goes Here
===============

this is the rest of the body
""")
    assert 'this is the rest of the body' in content
    return
Exemplo n.º 4
0
def test_find_body():
    title, content = format_post_from_string("""
Title Goes Here
===============

this is the rest of the body
""")
    assert 'this is the rest of the body' in content
    return