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

Function test_copy

tests/test_coverage_sorteddict.py:169–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 assert len(temp) == 26
168
169def test_copy():
170 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]
171 temp = SortedDict(mapping)
172 dup = temp.copy()
173 assert len(temp) == 26
174 assert len(dup) == 26
175 dup.clear()
176 assert len(temp) == 26
177 assert len(dup) == 0
178
179def test_copy_copy():
180 import copy

Callers

nothing calls this directly

Calls 3

copyMethod · 0.95
SortedDictClass · 0.90
clearMethod · 0.45

Tested by

no test coverage detected