Test that an `ElementTree` `Comment` is prettified properly.
(self)
| 436 | ) |
| 437 | |
| 438 | def testCommentPrettify(self): |
| 439 | """ Test that an `ElementTree` `Comment` is prettified properly. """ |
| 440 | pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown()) |
| 441 | pretty.run(self.comment) |
| 442 | self.assertEqual( |
| 443 | markdown.serializers.to_html_string(self.comment), |
| 444 | '<!--foo-->\n' |
| 445 | ) |
| 446 | |
| 447 | |
| 448 | class testElementTailTests(unittest.TestCase): |