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

Method testParseChunk

tests/test_apis.py:149–157  ·  view source on GitHub ↗

Test `BlockParser.parseChunk`.

(self)

Source from the content-addressed store, hash-verified

147 self.parser = markdown.Markdown().parser
148
149 def testParseChunk(self):
150 """ Test `BlockParser.parseChunk`. """
151 root = etree.Element("div")
152 text = 'foo'
153 self.parser.parseChunk(root, text)
154 self.assertEqual(
155 markdown.serializers.to_xhtml_string(root),
156 "<div><p>foo</p></div>"
157 )
158
159 def testParseDocument(self):
160 """ Test `BlockParser.parseDocument`. """

Callers

nothing calls this directly

Calls 1

parseChunkMethod · 0.80

Tested by

no test coverage detected