MCPcopy Index your code
hub / github.com/RustPython/RustPython / keys_helper

Method keys_helper

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

Source from the content-addressed store, hash-verified

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

Callers 2

test_anydbm_keysMethod · 0.95
read_helperMethod · 0.95

Calls 4

sortedFunction · 0.85
decodeMethod · 0.45
keysMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected