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

Method test_anydbm_access

Lib/test/test_dbm.py:130–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128 f.close()
129
130 def test_anydbm_access(self):
131 self.init_db()
132 f = dbm.open(_fname, 'r')
133 key = "a".encode("ascii")
134 self.assertIn(key, f)
135 assert(f[key] == b"Python:")
136 f.close()
137
138 def test_anydbm_readonly_reorganize(self):
139 self.init_db()

Callers

nothing calls this directly

Calls 5

init_dbMethod · 0.95
assertInMethod · 0.80
openMethod · 0.45
encodeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected