code: def test_ok(self):
      view = TV(self.root, "Title", "test text", modal=False)
      view.destroy = Func()
      view.Ok()
      self.assertTrue(view.destroy.called)
      del view.destroy  # Unmask the real function.
      view.destroy()
  
imports: import unittest
  import os
  from test.test_support import requires
  from Tkinter import Tk
  from idlelib import textView
  from idlelib.idle_test.mock_idle import Func
  from idlelib.idle_test.mock_tk import Mbox
label_desc: Use image node_id 6 for calling the textviewClassTest obj's underlying member method code with example usage: obj.test_ok() without return types