MCPcopy Index your code
hub / github.com/bpython/bpython / test_load

Method test_load

bpython/test/test_history.py:97–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 f.write(b"#1\n#2\n".decode())
96
97 def test_load(self):
98 history = History()
99
100 history.load(self.filename, self.encoding)
101 self.assertEqual(history.entries, ["#1", "#2"])
102
103 def test_append_reload_and_write(self):
104 history = History()

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95
HistoryClass · 0.90

Tested by

no test coverage detected