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

Method test_ancestors_tail

tests/test_apis.py:970–978  ·  view source on GitHub ↗

Test that an extension can exclude parent tags when dealing with a tail.

(self)

Source from the content-addressed store, hash-verified

968 self.assertEqual(self.md.convert(test), result)
969
970 def test_ancestors_tail(self):
971 """ Test that an extension can exclude parent tags when dealing with a tail. """
972 test = """
973[***+em+*+strong+**](http://test.com)
974"""
975 result = """<p><a href="http://test.com"><strong><em>+em+</em>+strong+</strong></a></p>"""
976
977 self.md.reset()
978 self.assertEqual(self.md.convert(test), result)

Callers

nothing calls this directly

Calls 2

convertMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected