Test that a simple `AtomicString` is not parsed.
(self)
| 680 | ) |
| 681 | |
| 682 | def testSimpleAtomicString(self): |
| 683 | """ Test that a simple `AtomicString` is not parsed. """ |
| 684 | tree = etree.Element('div') |
| 685 | p = etree.SubElement(tree, 'p') |
| 686 | p.text = markdown.util.AtomicString('some *text*') |
| 687 | new = self.inlineprocessor.run(tree) |
| 688 | self.assertEqual( |
| 689 | markdown.serializers.to_html_string(new), |
| 690 | '<div><p>some *text*</p></div>' |
| 691 | ) |
| 692 | |
| 693 | def testNestedAtomicString(self): |
| 694 | """ Test that a nested `AtomicString` is not parsed. """ |