MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / testAppend

Method testAppend

tests/test_apis.py:908–914  ·  view source on GitHub ↗

Test that appended escapes are only in the current instance.

(self)

Source from the content-addressed store, hash-verified

906 """ Tests escape character append. """
907
908 def testAppend(self):
909 """ Test that appended escapes are only in the current instance. """
910 md = markdown.Markdown()
911 md.ESCAPED_CHARS.append('|')
912 self.assertEqual('|' in md.ESCAPED_CHARS, True)
913 md2 = markdown.Markdown()
914 self.assertEqual('|' not in md2.ESCAPED_CHARS, True)
915
916
917class TestBlockAppend(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected