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

Method testBlockAppend

tests/test_apis.py:920–926  ·  view source on GitHub ↗

Test that appended escapes are only in the current instance.

(self)

Source from the content-addressed store, hash-verified

918 """ Tests block `kHTML` append. """
919
920 def testBlockAppend(self):
921 """ Test that appended escapes are only in the current instance. """
922 md = markdown.Markdown()
923 md.block_level_elements.append('test')
924 self.assertEqual('test' in md.block_level_elements, True)
925 md2 = markdown.Markdown()
926 self.assertEqual('test' not in md2.block_level_elements, True)
927
928
929class TestAncestorExclusion(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected