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

Method testSimpleAtomicString

tests/test_apis.py:706–715  ·  view source on GitHub ↗

Test that a simple `AtomicString` is not parsed.

(self)

Source from the content-addressed store, hash-verified

704 )
705
706 def testSimpleAtomicString(self):
707 """ Test that a simple `AtomicString` is not parsed. """
708 tree = etree.Element('div')
709 p = etree.SubElement(tree, 'p')
710 p.text = markdown.util.AtomicString('some *text*')
711 new = self.inlineprocessor.run(tree)
712 self.assertEqual(
713 markdown.serializers.to_html_string(new),
714 '<div><p>some *text*</p></div>'
715 )
716
717 def testNestedAtomicString(self):
718 """ Test that a nested `AtomicString` is not parsed. """

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected