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

Method testString

tests/test_apis.py:671–680  ·  view source on GitHub ↗

Test that a regular string is parsed.

(self)

Source from the content-addressed store, hash-verified

669 self.inlineprocessor = self.md.treeprocessors['inline']
670
671 def testString(self):
672 """ Test that a regular string is parsed. """
673 tree = etree.Element('div')
674 p = etree.SubElement(tree, 'p')
675 p.text = 'some *text*'
676 new = self.inlineprocessor.run(tree)
677 self.assertEqual(
678 markdown.serializers.to_html_string(new),
679 '<div><p>some <em>text</em></p></div>'
680 )
681
682 def testSimpleAtomicString(self):
683 """ Test that a simple `AtomicString` is not parsed. """

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected