def _call_no_clientmock(self, args, stdout=None):
    'Run the client with output streams mocked out'
    args = (self.standard_args + args)
    toy_stdout = (stdout if stdout else io.StringIO())
    with mock.patch('certbot._internal.main.sys.stdout', new=toy_stdout):
        with mock.patch('certbot._internal.main.sys.stderr') as stderr:
            with mock.patch('certbot.util.atexit'):
                ret = main.main(args[:])
    return (ret, toy_stdout, stderr)
Run the client with output streams mocked out
def _call_no_clientmock(self, args, stdout=None):
    
    args = (self.standard_args + args)
    toy_stdout = (stdout if stdout else io.StringIO())
    with mock.patch('certbot._internal.main.sys.stdout', new=toy_stdout):
        with mock.patch('certbot._internal.main.sys.stderr') as stderr:
            with mock.patch('certbot.util.atexit'):
                ret = main.main(args[:])
    return (ret, toy_stdout, stderr)