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

Method testWikilinkWhitespace

tests/test_extensions.py:174–183  ·  view source on GitHub ↗

Test whitespace in `wikilinks`.

(self)

Source from the content-addressed store, hash-verified

172 )
173
174 def testWikilinkWhitespace(self):
175 """ Test whitespace in `wikilinks`. """
176 self.assertEqual(
177 self.md.convert('[[ foo bar_baz ]]'),
178 '<p><a class="wikilink" href="/foo_bar_baz/">foo bar_baz</a></p>'
179 )
180 self.assertEqual(
181 self.md.convert('foo [[ ]] bar'),
182 '<p>foo bar</p>'
183 )
184
185 def testSimpleSettings(self):
186 """ Test Simple Settings. """

Callers

nothing calls this directly

Calls 1

convertMethod · 0.80

Tested by

no test coverage detected