def dummy_doctree(): source = """\ ============= Test *Simple* ============= Body. """ yield rst_document(source)
def notitle_doc(): source = '''\ Body ''' doc = rst_document(source) yield doc
def excerpt(): source = """ Test ==== First *paragraph*. Second *paragraph*. """ yield rst_document(source)
def title_doc(): source = '''\ ============= Test *Simple* ============= Body ''' doc = rst_document(source) yield doc
def noexcerpt(): source = """ Test ==== """ yield rst_document(source)
def test_rst_document(self): source = 'Hello *world*' result = rst_document(source) assert 'document' == result.__class__.__name__