SiteGenerator/tests/test_generate.py

8 lines
177 B
Python
Raw Normal View History

2022-01-25 14:36:18 +00:00
from gsitegen.generate import *
from html5tagger import E
def test_markdown():
2022-01-25 14:36:18 +00:00
doc = E()
doc = parseMarkdown(doc, "## Heading 2")
2022-01-25 14:36:18 +00:00
assert str(doc) == "<h2>Heading 2</h2>"