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

Method testAppend

tests/test_apis.py:943–949  ·  view source on GitHub ↗

Test that appended escapes are only in the current instance.

(self)

Source from the content-addressed store, hash-verified

941 """ Tests escape character append. """
942
943 def testAppend(self):
944 """ Test that appended escapes are only in the current instance. """
945 md = markdown.Markdown()
946 md.ESCAPED_CHARS.append('|')
947 self.assertEqual('|' in md.ESCAPED_CHARS, True)
948 md2 = markdown.Markdown()
949 self.assertEqual('|' not in md2.ESCAPED_CHARS, True)
950
951
952class TestBlockAppend(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected