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

Method setUp

tests/test_extensions.py:35–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 """ Test markdown.extensions.Extension. """
34
35 def setUp(self):
36 class TestExtension(markdown.extensions.Extension):
37 config = {
38 'foo': ['bar', 'Description of foo'],
39 'bar': ['baz', 'Description of bar']
40 }
41
42 self.ext = TestExtension()
43 self.ExtKlass = TestExtension
44
45 def testGetConfig(self):
46 self.assertEqual(self.ext.getConfig('foo'), 'bar')

Callers

nothing calls this directly

Calls 1

TestExtensionClass · 0.85

Tested by

no test coverage detected