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

Method testRegistryDelItem

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

Source from the content-addressed store, hash-verified

345 r['a'] = 'a'
346
347 def testRegistryDelItem(self):
348 r = markdown.util.Registry()
349 r.register(Item('a'), 'a', 20)
350 with self.assertRaises(TypeError):
351 del r[0]
352 with self.assertRaises(TypeError):
353 del r['a']
354
355 def testRegistrySlice(self):
356 r = markdown.util.Registry()

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
ItemClass · 0.85

Tested by

no test coverage detected