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

Method test_dumbdbm_creation

Lib/test/test_dbm_dumb.py:37–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 }
36
37 def test_dumbdbm_creation(self):
38 with contextlib.closing(dumbdbm.open(_fname, 'c')) as f:
39 self.assertEqual(list(f.keys()), [])
40 for key in self._dict:
41 f[key] = self._dict[key]
42 self.read_helper(f)
43
44 @unittest.skipUnless(hasattr(os, 'umask'), 'test needs os.umask()')
45 @os_helper.skip_unless_working_chmod

Callers

nothing calls this directly

Calls 6

read_helperMethod · 0.95
listClass · 0.85
closingMethod · 0.80
openMethod · 0.45
assertEqualMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected