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

Function test_fromkeys

tests/test_coverage_sorteddict.py:190–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188 assert len(dup) == 0
189
190def test_fromkeys():
191 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]
192 temp = SortedDict.fromkeys(mapping, 1)
193 assert all(temp[key] == 1 for key in temp)
194
195def test_get():
196 mapping = [(val, pos) for pos, val in enumerate(string.ascii_lowercase)]

Callers

nothing calls this directly

Calls 1

fromkeysMethod · 0.80

Tested by

no test coverage detected