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

Method read_helper

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

Source from the content-addressed store, hash-verified

206 dbm.open(os_helper.FakePath(os.fsencode(_fname)), "c").close()
207
208 def read_helper(self, f):
209 keys = self.keys_helper(f)
210 for key in self._dict:
211 self.assertEqual(self._dict[key], f[key.encode("ascii")])
212
213 def test_keys(self):
214 with dbm.open(_fname, 'c') as d:

Callers 3

test_anydbm_creationMethod · 0.95
test_anydbm_readMethod · 0.95

Calls 3

keys_helperMethod · 0.95
assertEqualMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected