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

Method test_anydbm_creation

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

Source from the content-addressed store, hash-verified

73 self.assertRaises(dbm.error, dbm.open, _fname)
74
75 def test_anydbm_creation(self):
76 f = dbm.open(_fname, 'c')
77 self.assertEqual(list(f.keys()), [])
78 for key in self._dict:
79 f[key.encode("ascii")] = self._dict[key]
80 self.read_helper(f)
81 f.close()
82
83 def test_anydbm_creation_n_file_exists_with_invalid_contents(self):
84 # create an empty file

Callers

nothing calls this directly

Calls 7

read_helperMethod · 0.95
listClass · 0.85
openMethod · 0.45
assertEqualMethod · 0.45
keysMethod · 0.45
encodeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected