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

Method testLoadExtensionFailure

tests/test_apis.py:400–405  ·  view source on GitHub ↗

Test failure of an extension to load.

(self)

Source from the content-addressed store, hash-verified

398 self.assertRaises(KeyError, markdown.Markdown, output_format='invalid')
399
400 def testLoadExtensionFailure(self):
401 """ Test failure of an extension to load. """
402 self.assertRaises(
403 ImportError,
404 markdown.Markdown, extensions=['non_existent_ext']
405 )
406
407 def testLoadBadExtension(self):
408 """ Test loading of an Extension with no makeExtension function. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected