SiteGenerator/tests/test_generate.py

8 lines
177 B
Python

from gsitegen.generate import *
from html5tagger import E
def test_markdown():
doc = E()
doc = parseMarkdown(doc, "## Heading 2")
assert str(doc) == "<h2>Heading 2</h2>"