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

Function test_keys

tests/test_coverage_sorteddict.py:213–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 assert list(temp.items()) == mapping
212
213def test_keys():
214 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]
215 temp = SortedDict(mapping)
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)]

Callers

nothing calls this directly

Calls 2

keysMethod · 0.95
SortedDictClass · 0.90

Tested by

no test coverage detected