MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / test_items

Function test_items

tests/test_coverage_sorteddict.py:208–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 assert temp.has_key('a')
207
208def test_items():
209 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]
210 temp = SortedDict(mapping)
211 assert list(temp.items()) == mapping
212
213def test_keys():
214 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.95
SortedDictClass · 0.90

Tested by

no test coverage detected