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

Method testLoadExtensionFailure

tests/test_apis.py:376–381  ·  view source on GitHub ↗

Test failure of an extension to load.

(self)

Source from the content-addressed store, hash-verified

374 self.assertRaises(KeyError, markdown.Markdown, output_format='invalid')
375
376 def testLoadExtensionFailure(self):
377 """ Test failure of an extension to load. """
378 self.assertRaises(
379 ImportError,
380 markdown.Markdown, extensions=['non_existant_ext']
381 )
382
383 def testLoadBadExtension(self):
384 """ Test loading of an Extension with no makeExtension function. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected