Test that a simple `AtomicString` is not parsed.
(self)
| 704 | ) |
| 705 | |
| 706 | def testSimpleAtomicString(self): |
| 707 | """ Test that a simple `AtomicString` is not parsed. """ |
| 708 | tree = etree.Element('div') |
| 709 | p = etree.SubElement(tree, 'p') |
| 710 | p.text = markdown.util.AtomicString('some *text*') |
| 711 | new = self.inlineprocessor.run(tree) |
| 712 | self.assertEqual( |
| 713 | markdown.serializers.to_html_string(new), |
| 714 | '<div><p>some *text*</p></div>' |
| 715 | ) |
| 716 | |
| 717 | def testNestedAtomicString(self): |
| 718 | """ Test that a nested `AtomicString` is not parsed. """ |