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

Class Item

tests/test_apis.py:215–224  ·  view source on GitHub ↗

A dummy `Registry` item object for testing.

Source from the content-addressed store, hash-verified

213
214
215class Item:
216 """ A dummy `Registry` item object for testing. """
217 def __init__(self, data):
218 self.data = data
219
220 def __repr__(self):
221 return repr(self.data)
222
223 def __eq__(self, other):
224 return self.data == other
225
226
227class RegistryTests(unittest.TestCase):

Callers 13

testCreateRegistryMethod · 0.85
testSortRegistryMethod · 0.85
testIsSortedMethod · 0.85
testDeregisterMethod · 0.85
testRegistryContainsMethod · 0.85
testRegistryIterMethod · 0.85
testRegistryDelItemMethod · 0.85
testRegistrySliceMethod · 0.85
testGetIndexForNameMethod · 0.85

Calls

no outgoing calls

Tested by 13

testCreateRegistryMethod · 0.68
testSortRegistryMethod · 0.68
testIsSortedMethod · 0.68
testDeregisterMethod · 0.68
testRegistryContainsMethod · 0.68
testRegistryIterMethod · 0.68
testRegistryDelItemMethod · 0.68
testRegistrySliceMethod · 0.68
testGetIndexForNameMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…