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 test_comment_block(self):
      text = self.text
  
      # Set cursor ('insert') to '1.0', within block.
      text.insert("1.0", self.multiline_test_comment)
      self.formatter("ParameterDoesNothing", limit=70)
      result = text.get("1.0", "insert")
      expected = (
          "# The first line is under the max width. The second line's length is\n"
          "# way over the max width. It goes on and on until it is over 100\n"
          "# characters long. Same thing with the third line. It is also way over\n"
          "# the max width, but FormatParagraph will fix it. The fourth line is\n"
          "# short like the first line.\n"
      )
      self.assertEqual(result, expected)
      text.delete("1.0", "end")
  
      # Select line 2, verify line 1 unaffected.
      text.insert("1.0", self.multiline_test_comment)
      text.tag_add("sel", "2.0", "3.0")
      self.formatter("ParameterDoesNothing", limit=70)
      result = text.get("1.0", "insert")
      expected = (
          "# The first line is under the max width.\n"
          "# The second line's length is way over the max width. It goes on and\n"
          "# on until it is over 100 characters long.\n"
      )
      self.assertEqual(result, expected)
      text.delete("1.0", "end")
  
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 6 for calling the FormatEventTest obj's underlying member method code with example usage: obj.test_comment_block() without return types