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

Method testAppend

tests/test_apis.py:967–973  ·  view source on GitHub ↗

Test that appended escapes are only in the current instance.

(self)

Source from the content-addressed store, hash-verified

965 """ Tests escape character append. """
966
967 def testAppend(self):
968 """ Test that appended escapes are only in the current instance. """
969 md = markdown.Markdown()
970 md.ESCAPED_CHARS.append('|')
971 self.assertEqual('|' in md.ESCAPED_CHARS, True)
972 md2 = markdown.Markdown()
973 self.assertEqual('|' not in md2.ESCAPED_CHARS, True)
974
975
976class TestBlockAppend(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected