Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_render_html():
text = u"Hello, **world**!"
root = cmark.parse_document(text)
result = cmark.render_html(root)
assert result == '<p>Hello, <strong>world</strong>!</p>\n'
def test_parse_document():
text = u"Hello, **world**!"
result = cmark.parse_document(text)
assert result is not None