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

Function test_values

tests/test_coverage_sorteddict.py:218–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 assert list(temp.keys()) == [key for key, pos in mapping]
217
218def test_values():
219 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]
220 temp = SortedDict(mapping)
221 assert list(temp.values()) == [pos for key, pos in mapping]
222
223def test_iterkeys():
224 temp = SortedDict()

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.95
SortedDictClass · 0.90

Tested by

no test coverage detected