def _test(self, sig, doc, help_str):
        try:
            backw = util.get_terminal_width
        except __HOLE__:
            backw = None
        try:
            util.get_terminal_width = lambda: 80
            func = f(sig, pre="from clize import Parameter as P")
            func.__doc__ = doc
            r = runner.Clize(func)
            h = help.ClizeHelp(r, None)
            h.prepare()
            p_help_str = str(h.show('func'))
            self.assertEqual(help_str, p_help_str)
        finally:
            if backw is not None:
                util.get_terminal_width = backw
dataset/ETHPy150Open epsy/clize/clize/tests/test_help.py/FormattingTests._test