MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / testString

Method testString

tests/test_apis.py:695–704  ·  view source on GitHub ↗

Test that a regular string is parsed.

(self)

Source from the content-addressed store, hash-verified

693 self.inlineprocessor = self.md.treeprocessors['inline']
694
695 def testString(self):
696 """ Test that a regular string is parsed. """
697 tree = etree.Element('div')
698 p = etree.SubElement(tree, 'p')
699 p.text = 'some *text*'
700 new = self.inlineprocessor.run(tree)
701 self.assertEqual(
702 markdown.serializers.to_html_string(new),
703 '<div><p>some <em>text</em></p></div>'
704 )
705
706 def testSimpleAtomicString(self):
707 """ Test that a simple `AtomicString` is not parsed. """

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected