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

Method testNonExtension

tests/test_apis.py:411–413  ·  view source on GitHub ↗

Test loading a non Extension object as an extension.

(self)

Source from the content-addressed store, hash-verified

409 self.assertRaises(AttributeError, markdown.Markdown, extensions=['markdown.util'])
410
411 def testNonExtension(self):
412 """ Test loading a non Extension object as an extension. """
413 self.assertRaises(TypeError, markdown.Markdown, extensions=[object])
414
415 def testDotNotationExtensionWithBadClass(self):
416 """ Test Extension loading with non-existent class name (`path.to.module:Class`). """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected