class_docstr: Test History.fetch with wrapped tk.Text.
      
class_docstr_tok: ["Test","History.fetch","with","wrapped","tk.Text","."]
code: def fetch_test(self, reverse, line, prefix, index, bell=False):
      # Perform one fetch as invoked by Alt-N or Alt-P
      # Test the result. The line test is the most important.
      # The last two are diagnostic of fetch internals.
      History = self.history
      History.fetch(reverse)
  
      Equal = self.assertEqual
      Equal(self.text.get("iomark", "end-1c"), line)
      Equal(self.text._bell, bell)
      if bell:
          self.text._bell = False
      Equal(History.prefix, prefix)
      Equal(History.pointer, index)
      Equal(self.text.compare("insert", "==", "end-1c"), 1)
  
imports: import unittest
  from test.test_support import requires
  import Tkinter
  from Tkinter import Text
  from idlelib.idle_test.mock_tk import Text
  from idlelib.IdleHistory import History
  from idlelib.configHandler import idleConf
label_desc: Use image node_id 4 for calling the FetchTest obj's underlying member method code with example usage: obj.fetch_test(reverse, line, prefix, index, bell) without return types