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

Method read_helper

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

Source from the content-addressed store, hash-verified

146 dbm.open(os_helper.FakePath(os.fsencode(_fname)), "c").close()
147
148 def read_helper(self, f):
149 keys = self.keys_helper(f)
150 for key in self._dict:
151 self.assertEqual(self._dict[key], f[key.encode("ascii")])
152
153 def test_keys(self):
154 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