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

Method test_str_read

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

Source from the content-addressed store, hash-verified

115 self.assertEqual(f[b'1'], b'hello2')
116
117 def test_str_read(self):
118 self.init_db()
119 with contextlib.closing(dumbdbm.open(_fname, 'r')) as f:
120 self.assertEqual(f['\u00fc'], self._dict['\u00fc'.encode('utf-8')])
121
122 def test_str_write_contains(self):
123 self.init_db()

Callers

nothing calls this directly

Calls 5

init_dbMethod · 0.95
closingMethod · 0.80
openMethod · 0.45
assertEqualMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected