Test `BlockParser.parseChunk`.
(self)
| 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`. """ |
nothing calls this directly
no test coverage detected