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

Method testBlockAppend

tests/test_apis.py:955–961  ·  view source on GitHub ↗

Test that appended escapes are only in the current instance.

(self)

Source from the content-addressed store, hash-verified

953 """ Tests block `kHTML` append. """
954
955 def testBlockAppend(self):
956 """ Test that appended escapes are only in the current instance. """
957 md = markdown.Markdown()
958 md.block_level_elements.append('test')
959 self.assertEqual('test' in md.block_level_elements, True)
960 md2 = markdown.Markdown()
961 self.assertEqual('test' not in md2.block_level_elements, True)
962
963
964class TestAncestorExclusion(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected