MCPcopy
hub / github.com/Python-Markdown/markdown / testCreateRegistry

Method testCreateRegistry

tests/test_apis.py:230–234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

228 """ Test the processor registry. """
229
230 def testCreateRegistry(self):
231 r = markdown.util.Registry()
232 r.register(Item('a'), 'a', 20)
233 self.assertEqual(len(r), 1)
234 self.assertIsInstance(r, markdown.util.Registry)
235
236 def testRegisterWithoutPriority(self):
237 r = markdown.util.Registry()

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
ItemClass · 0.85

Tested by

no test coverage detected