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

Method testSimpleAtomicString

tests/test_apis.py:682–691  ·  view source on GitHub ↗

Test that a simple `AtomicString` is not parsed.

(self)

Source from the content-addressed store, hash-verified

680 )
681
682 def testSimpleAtomicString(self):
683 """ Test that a simple `AtomicString` is not parsed. """
684 tree = etree.Element('div')
685 p = etree.SubElement(tree, 'p')
686 p.text = markdown.util.AtomicString('some *text*')
687 new = self.inlineprocessor.run(tree)
688 self.assertEqual(
689 markdown.serializers.to_html_string(new),
690 '<div><p>some *text*</p></div>'
691 )
692
693 def testNestedAtomicString(self):
694 """ Test that a nested `AtomicString` is not parsed. """

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected