class_docstr: Test History.fetch with wrapped tk.Text.
      
class_docstr_tok: ["Test","History.fetch","with","wrapped","tk.Text","."]
code: def setUp(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]
  
imports: from idlelib.history import History
  import unittest
  from test.support import requires
  import tkinter
  from tkinter import Text
  from idlelib.idle_test.mock_tk import Text
  from idlelib.config import idleConf
label_desc: Use image node_id 2 for calling the FetchTest obj's underlying member method code with example usage: obj.setUp() without return types