def METHOD_NAME(self):
    self.text = text = TextWrapper(self.root)
    text.insert('1.0', ">>> ")
    text.mark_set('iomark', '1.4')
    text.mark_gravity('iomark', 'left')
    self.history = History(text)
    self.history.history = [line1, line2]