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

Method testLoadBadExtension

tests/test_apis.py:407–409  ·  view source on GitHub ↗

Test loading of an Extension with no makeExtension function.

(self)

Source from the content-addressed store, hash-verified

405 )
406
407 def testLoadBadExtension(self):
408 """ Test loading of an Extension with no makeExtension function. """
409 self.assertRaises(AttributeError, markdown.Markdown, extensions=['markdown.util'])
410
411 def testNonExtension(self):
412 """ Test loading a non Extension object as an extension. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected