MCPcopy Index your code
hub / github.com/Python-Markdown/markdown / testRegistryContains

Method testRegistryContains

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

Source from the content-addressed store, hash-verified

282 self.assertEqual(list(r), ['a'])
283
284 def testRegistryContains(self):
285 r = markdown.util.Registry()
286 item = Item('a')
287 r.register(item, 'a', 20)
288 self.assertIs('a' in r, True)
289 self.assertIn(item, r)
290 self.assertNotIn('b', r)
291
292 def testRegistryIter(self):
293 r = markdown.util.Registry()

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
ItemClass · 0.85

Tested by

no test coverage detected