mirror of
https://github.com/vale981/recommonmark
synced 2025-03-06 02:21:38 -05:00
21 lines
448 B
Python
21 lines
448 B
Python
import unittest
|
|
|
|
from docutils.core import publish_parts
|
|
|
|
from recommonmark.parser import CommonMarkParser
|
|
|
|
|
|
class TestStringMethods(unittest.TestCase):
|
|
|
|
def test_basic_parser(self):
|
|
source = '# Header'
|
|
|
|
ret = publish_parts(
|
|
source=source,
|
|
writer_name='html',
|
|
parser=CommonMarkParser()
|
|
)
|
|
self.assertTrue(ret['title'], 'Header')
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|