예제 #1
0
파일: test_pyrkup.py 프로젝트: kosqx/pyrkup
def test_creole_parse():
    creole = CreoleMarkup()
    assert creole.parse(u'foo**bar**') == [
        u'foo',
        Node('bold', None, [
            u'bar',
        ])
    ]
예제 #2
0
파일: test_pyrkup.py 프로젝트: kosqx/pyrkup
def test_creole_format():
    creole = CreoleMarkup()
    assert creole.format(data) == u'foo**bar**\n\n'