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

Method testRegistryContains

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

Source from the content-addressed store, hash-verified

306 self.assertEqual(list(r), ['a'])
307
308 def testRegistryContains(self):
309 r = markdown.util.Registry()
310 item = Item('a')
311 r.register(item, 'a', 20)
312 self.assertIs('a' in r, True)
313 self.assertIn(item, r)
314 self.assertNotIn('b', r)
315
316 def testRegistryIter(self):
317 r = markdown.util.Registry()

Callers

nothing calls this directly

Calls 2

registerMethod · 0.95
ItemClass · 0.85

Tested by

no test coverage detected