示例#1
0
def dummy_doctree():
    source = """\
=============
Test *Simple*
=============

Body.
        """
    yield rst_document(source)
示例#2
0
def notitle_doc():
    source = '''\

Body       

    '''

    doc = rst_document(source)
    yield doc
示例#3
0
def excerpt():
    source = """
Test
====

First *paragraph*.

Second *paragraph*.        
            """
    yield rst_document(source)
示例#4
0
def title_doc():
    source = '''\
=============
Test *Simple*
=============

Body       

    '''

    doc = rst_document(source)
    yield doc
示例#5
0
def noexcerpt():
    source = """
Test
====
            """
    yield rst_document(source)
示例#6
0
 def test_rst_document(self):
     source = 'Hello *world*'
     result = rst_document(source)
     assert 'document' == result.__class__.__name__