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

Method testRegistryIter

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

Source from the content-addressed store, hash-verified

290 self.assertNotIn('b', r)
291
292 def testRegistryIter(self):
293 r = markdown.util.Registry()
294 r.register(Item('a'), 'a', 20)
295 r.register(Item('b'), 'b', 30)
296 self.assertEqual(list(r), ['b', 'a'])
297
298 def testRegistryGetItemByIndex(self):
299 r = markdown.util.Registry()

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
ItemClass · 0.85

Tested by

no test coverage detected