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

Method testParseChunk

tests/test_apis.py:125–133  ·  view source on GitHub ↗

Test `BlockParser.parseChunk`.

(self)

Source from the content-addressed store, hash-verified

123 self.parser = markdown.Markdown().parser
124
125 def testParseChunk(self):
126 """ Test `BlockParser.parseChunk`. """
127 root = etree.Element("div")
128 text = 'foo'
129 self.parser.parseChunk(root, text)
130 self.assertEqual(
131 markdown.serializers.to_xhtml_string(root),
132 "<div><p>foo</p></div>"
133 )
134
135 def testParseDocument(self):
136 """ Test `BlockParser.parseDocument`. """

Callers

nothing calls this directly

Calls 1

parseChunkMethod · 0.80

Tested by

no test coverage detected