(self)
| 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() |