def METHOD_NAME(self):
    # Test that .__init__ causes redirection of tk calls
    # through redir.dispatch
    self.root.call(self.text._w, 'insert', 'hello')
    self.assertEqual(self.func.args, ('hello',))
    self.assertEqual(self.text.get('1.0', 'end'), '\n')
    # Ensure that called through redir .dispatch and not through
    # self.text.insert by having mock raise TclError.
    self.func.__init__(TclError())
    self.assertEqual(self.root.call(self.text._w, 'insert', 'boo'), '')