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

Function test_setitem

tests/test_coverage_sorteddict.py:154–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 assert len(temp) == 26
153
154def test_setitem():
155 temp = SortedDict()
156
157 for pos, key in enumerate(string.ascii_lowercase):
158 temp[key] = pos
159 temp._check()
160
161 assert len(temp) == 26
162
163 for pos, key in enumerate(string.ascii_lowercase):
164 temp[key] = pos
165 temp._check()
166
167 assert len(temp) == 26
168
169def test_copy():
170 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]

Callers

nothing calls this directly

Calls 2

_checkMethod · 0.95
SortedDictClass · 0.90

Tested by

no test coverage detected