def METHOD_NAME(self):
    redir = WidgetRedirector(self.text)
    self.assertEqual(redir.widget, self.text)
    self.assertEqual(redir.tk, self.text.tk)
    self.assertRaises(TclError, WidgetRedirector, self.text)
    redir.close()  # restore self.tk, self.text