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

Method testCreateRegistry

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

Source from the content-addressed store, hash-verified

252 """ Test the processor registry. """
253
254 def testCreateRegistry(self):
255 r = markdown.util.Registry()
256 r.register(Item('a'), 'a', 20)
257 self.assertEqual(len(r), 1)
258 self.assertIsInstance(r, markdown.util.Registry)
259
260 def testRegisterWithoutPriority(self):
261 r = markdown.util.Registry()

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
ItemClass · 0.85

Tested by

no test coverage detected