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

Method testCustomSubstitutions

tests/test_extensions.py:296–304  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

294 )
295
296 def testCustomSubstitutions(self):
297 text = """<< The "Unicode char of the year 2014"
298is the 'mdash': ---
299Must not be confused with 'ndash' (--) ... >>
300"""
301 correct = """<p>[ The &bdquo;Unicode char of the year 2014&ldquo;
302is the &sbquo;mdash&lsquo;: \u2014
303Must not be confused with &sbquo;ndash&lsquo; (\u2013) \u2026 ]</p>"""
304 self.assertEqual(self.md.convert(text), correct)

Callers

nothing calls this directly

Calls 1

convertMethod · 0.80

Tested by

no test coverage detected