class_docstr: Simulate user clicking [Close] button
class_docstr_tok: ["Simulate","user","clicking","[","Close","]","button"]
code: def test_close(self):
      self.assertEqual(self.dialog.winfo_class(), "Toplevel")
      self.dialog.button_ok.invoke()
      with self.assertRaises(TclError):
          self.dialog.winfo_class()
  
imports: from idlelib import help_about
  import unittest
  from test.support import requires, findfile
  from tkinter import Tk, TclError
  from idlelib.idle_test.mock_idle import Func
  from idlelib.idle_test.mock_tk import Mbox_func
  from idlelib import textview
  import os.path
  from platform import python_version
label_desc: Use image node_id 3 for calling the CloseTest obj's underlying member method code with example usage: obj.test_close() without return types