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

Function test_update2

tests/test_coverage_sorteddict.py:287–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285 assert list(temp.items()) == mapping
286
287def test_update2():
288 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]
289 temp = SortedDict()
290 temp.update(**dict(mapping))
291 assert list(temp.items()) == mapping
292
293def test_repr():
294 temp = SortedDict({'alice': 3, 'bob': 1, 'carol': 2, 'dave': 4})

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
itemsMethod · 0.95
SortedDictClass · 0.90

Tested by

no test coverage detected