def _call(self, args):
    plugins = disco.PluginsRegistry.find_all()
    config = configuration.NamespaceConfig(cli.prepare_and_parse_args(plugins, args))
    with mock.patch('certbot._internal.main._init_le_client') as mock_init:
        with mock.patch('certbot._internal.main._suggest_donation_if_appropriate'):
            with mock.patch('certbot._internal.eff.handle_subscription'):
                main.certonly(config, plugins)
    return mock_init()
def _call(self, args):
    plugins = disco.PluginsRegistry.find_all()
    config = configuration.NamespaceConfig(cli.prepare_and_parse_args(plugins, args))
    with mock.patch('certbot._internal.main._init_le_client') as mock_init:
        with mock.patch('certbot._internal.main._suggest_donation_if_appropriate'):
            with mock.patch('certbot._internal.eff.handle_subscription'):
                main.certonly(config, plugins)
    return mock_init()