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

Method testRegistryIter

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

Source from the content-addressed store, hash-verified

314 self.assertNotIn('b', r)
315
316 def testRegistryIter(self):
317 r = markdown.util.Registry()
318 r.register(Item('a'), 'a', 20)
319 r.register(Item('b'), 'b', 30)
320 self.assertEqual(list(r), ['b', 'a'])
321
322 def testRegistryGetItemByIndex(self):
323 r = markdown.util.Registry()

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
ItemClass · 0.85

Tested by

no test coverage detected