Test that an `ElementTree` `Comment` is prettified properly.
(self)
| 460 | ) |
| 461 | |
| 462 | def testCommentPrettify(self): |
| 463 | """ Test that an `ElementTree` `Comment` is prettified properly. """ |
| 464 | pretty = markdown.treeprocessors.PrettifyTreeprocessor(markdown.Markdown()) |
| 465 | pretty.run(self.comment) |
| 466 | self.assertEqual( |
| 467 | markdown.serializers.to_html_string(self.comment), |
| 468 | '<!--foo-->\n' |
| 469 | ) |
| 470 | |
| 471 | |
| 472 | class testElementTailTests(unittest.TestCase): |