class_docstr: Test the formatting of text inside a Text widget.
  
  This is done with FormatParagraph.format.paragraph_event,
  which calls functions in the module as appropriate.
class_docstr_tok: ["Test","the","formatting","of","text","inside","a","Text","widget",".","This","is","done","with","FormatParagraph.format.paragraph_event",",","which","calls","functions","in","the","module","as","appropriate","."]
code: def setUpClass(cls):
      requires("gui")
      cls.root = Tk()
      editor = Editor(root=cls.root)
      cls.text = (
          editor.text.text
      )  # Test code does not need the wrapper.
      cls.formatter = fp.FormatParagraph(editor).format_paragraph_event
  
imports: import unittest
  from idlelib import FormatParagraph
  from idlelib.EditorWindow import EditorWindow
  from Tkinter import Tk, Text
  from test.test_support import requires
label_desc: Use image node_id 1 for calling the FormatEventTest obj's underlying member method code with example usage: obj.setUpClass(cls) without return types