MCPcopy Index your code
hub / github.com/python/cpython / keys_helper

Method keys_helper

Lib/test/test_dbm.py:62–66  ·  view source on GitHub ↗
(self, f)

Source from the content-addressed store, hash-verified

60 f.close()
61
62 def keys_helper(self, f):
63 keys = sorted(k.decode("ascii") for k in f.keys())
64 dkeys = sorted(self._dict.keys())
65 self.assertEqual(keys, dkeys)
66 return keys
67
68 def test_error(self):
69 self.assertIsSubclass(self.module.error, OSError)

Callers 2

test_anydbm_keysMethod · 0.95
read_helperMethod · 0.95

Calls 3

decodeMethod · 0.45
keysMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected