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

Class Item

tests/test_apis.py:239–248  ·  view source on GitHub ↗

A dummy `Registry` item object for testing.

Source from the content-addressed store, hash-verified

237
238
239class Item:
240 """ A dummy `Registry` item object for testing. """
241 def __init__(self, data):
242 self.data = data
243
244 def __repr__(self):
245 return repr(self.data)
246
247 def __eq__(self, other):
248 return self.data == other
249
250
251class 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