def METHOD_NAME(self):
    self.w.history_file = None
    lines = ['foo', 'bar', 'baz']
    for line in lines:
        self.enter_line(line)
    self.assert_history_in_memory(lines)
    self.assert_history_on_disk([])