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

Method testRegistryDelItem

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

Source from the content-addressed store, hash-verified

321 r['a'] = 'a'
322
323 def testRegistryDelItem(self):
324 r = markdown.util.Registry()
325 r.register(Item('a'), 'a', 20)
326 with self.assertRaises(TypeError):
327 del r[0]
328 with self.assertRaises(TypeError):
329 del r['a']
330
331 def testRegistrySlice(self):
332 r = markdown.util.Registry()

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
ItemClass · 0.85

Tested by

no test coverage detected