MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / testComplexSettings

Method testComplexSettings

tests/test_extensions.py:199–217  ·  view source on GitHub ↗

Test Complex Settings.

(self)

Source from the content-addressed store, hash-verified

197 '<a class="foo" href="/wiki/WikiLink.html">WikiLink</a>.</p>')
198
199 def testComplexSettings(self):
200 """ Test Complex Settings. """
201
202 md = markdown.Markdown(
203 extensions=['wikilinks'],
204 extension_configs={
205 'wikilinks': [
206 ('base_url', 'http://example.com/'),
207 ('end_url', '.html'),
208 ('html_class', '')
209 ]
210 },
211 safe_mode=True
212 )
213 self.assertEqual(
214 md.convert(self.text),
215 '<p>Some text with a '
216 '<a href="http://example.com/WikiLink.html">WikiLink</a>.</p>'
217 )
218
219 def testWikilinksMetaData(self):
220 """ test `MetaData` with `Wikilinks` Extension. """

Callers

nothing calls this directly

Calls 1

convertMethod · 0.95

Tested by

no test coverage detected