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

Method testNonExtension

tests/test_apis.py:387–389  ·  view source on GitHub ↗

Test loading a non Extension object as an extension.

(self)

Source from the content-addressed store, hash-verified

385 self.assertRaises(AttributeError, markdown.Markdown, extensions=['markdown.util'])
386
387 def testNonExtension(self):
388 """ Test loading a non Extension object as an extension. """
389 self.assertRaises(TypeError, markdown.Markdown, extensions=[object])
390
391 def testDotNotationExtensionWithBadClass(self):
392 """ 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