SYMBOL INDEX (2271 symbols across 98 files) FILE: certbot/_internal/account.py class Account (line 27) | class Account(object): class Meta (line 37) | class Meta(jose.JSONObjectWithFields): method __init__ (line 50) | def __init__(self, regr, key, meta=None): method slug (line 78) | def slug(self): method __repr__ (line 83) | def __repr__(self): method __eq__ (line 87) | def __eq__(self, other): function report_new_account (line 93) | def report_new_account(config): class AccountMemoryStorage (line 108) | class AccountMemoryStorage(interfaces.AccountStorage): method __init__ (line 111) | def __init__(self, initial_accounts=None): method find_all (line 114) | def find_all(self): method save (line 117) | def save(self, account, client): method load (line 122) | def load(self, account_id): class RegistrationResourceWithNewAuthzrURI (line 128) | class RegistrationResourceWithNewAuthzrURI(messages.RegistrationResource): class AccountFileStorage (line 139) | class AccountFileStorage(interfaces.AccountStorage): method __init__ (line 145) | def __init__(self, config): method _account_dir_path (line 149) | def _account_dir_path(self, account_id): method _account_dir_path_for_server_path (line 152) | def _account_dir_path_for_server_path(self, account_id, server_path): method _regr_path (line 157) | def _regr_path(cls, account_dir_path): method _key_path (line 161) | def _key_path(cls, account_dir_path): method _metadata_path (line 165) | def _metadata_path(cls, account_dir_path): method _find_all_for_server_path (line 168) | def _find_all_for_server_path(self, server_path): method find_all (line 195) | def find_all(self): method _symlink_to_account_dir (line 198) | def _symlink_to_account_dir(self, prev_server_path, server_path, accou... method _symlink_to_accounts_dir (line 203) | def _symlink_to_accounts_dir(self, prev_server_path, server_path): method _load_for_server_path (line 212) | def _load_for_server_path(self, account_id, server_path): method load (line 241) | def load(self, account_id): method save (line 244) | def save(self, account, client): method save_regr (line 247) | def save_regr(self, account, acme): method delete (line 255) | def delete(self, account_id): method _delete_account_dir_for_server_path (line 272) | def _delete_account_dir_for_server_path(self, account_id, server_path): method _delete_accounts_dir_for_server_path (line 277) | def _delete_accounts_dir_for_server_path(self, server_path): method _delete_links_and_find_target_dir (line 282) | def _delete_links_and_find_target_dir(self, server_path, link_func): method _save (line 321) | def _save(self, account, acme, regr_only): FILE: certbot/_internal/auth_handler.py class AuthHandler (line 22) | class AuthHandler(object): method __init__ (line 38) | def __init__(self, auth, acme_client, account, pref_challs): method handle_authorizations (line 45) | def handle_authorizations(self, orderr, best_effort=False, max_retries... method deactivate_valid_authorizations (line 101) | def deactivate_valid_authorizations(self, orderr): method _poll_authorizations (line 126) | def _poll_authorizations(self, authzrs, max_retries, best_effort): method _choose_challenges (line 186) | def _choose_challenges(self, authzrs): method _get_chall_pref (line 213) | def _get_chall_pref(self, domain): method _cleanup_challenges (line 235) | def _cleanup_challenges(self, achalls): method _challenge_factory (line 245) | def _challenge_factory(self, authzr, path): function challb_to_achall (line 269) | def challb_to_achall(challb, account_key, domain): function gen_challenge_path (line 292) | def gen_challenge_path(challbs, preferences, combinations): function _find_smart_path (line 323) | def _find_smart_path(challbs, preferences, combinations): function _find_dumb_path (line 360) | def _find_dumb_path(challbs, preferences): function _report_no_chall_path (line 381) | def _report_no_chall_path(challbs): function _report_failed_authzrs (line 429) | def _report_failed_authzrs(failed_authzrs, account_key): function _generate_failed_chall_msg (line 444) | def _generate_failed_chall_msg(failed_achalls): FILE: certbot/_internal/cert_manager.py function update_live_symlinks (line 26) | def update_live_symlinks(config): function rename_lineage (line 41) | def rename_lineage(config): function certificates (line 68) | def certificates(config): function delete (line 90) | def delete(config): function lineage_for_certname (line 103) | def lineage_for_certname(cli_config, certname): function domains_for_certname (line 119) | def domains_for_certname(config, certname): function find_duplicative_certs (line 124) | def find_duplicative_certs(config, domains): function _archive_files (line 168) | def _archive_files(candidate_lineage, filetype): function _acceptable_matches (line 189) | def _acceptable_matches(): function cert_path_to_lineage (line 199) | def cert_path_to_lineage(cli_config): function match_and_check_overlaps (line 215) | def match_and_check_overlaps(cli_config, acceptable_matches, match_func,... function human_readable_cert_info (line 248) | def human_readable_cert_info(config, cert, skip_filter_checks=False): function get_certnames (line 291) | def get_certnames(config, verb, allow_multiple=False, custom_prompt=None): function _report_lines (line 330) | def _report_lines(msgs): function _report_human_readable (line 334) | def _report_human_readable(config, parsed_certs): function _describe_certs (line 341) | def _describe_certs(config, parsed_certs, parse_failures): function _search_lineages (line 362) | def _search_lineages(cli_config, func, initial_rv, *args): FILE: certbot/_internal/cli/__init__.py function prepare_and_parse_args (line 73) | def prepare_and_parse_args(plugins, args, detect_defaults=False): function set_by_cli (line 450) | def set_by_cli(var): function has_default_value (line 488) | def has_default_value(option, value): function option_was_set (line 506) | def option_was_set(option, value): function argparse_type (line 519) | def argparse_type(variable): FILE: certbot/_internal/cli/cli_utils.py class _Default (line 15) | class _Default(object): method __bool__ (line 18) | def __bool__(self): method __eq__ (line 21) | def __eq__(self, other): method __hash__ (line 24) | def __hash__(self): method __nonzero__ (line 27) | def __nonzero__(self): function read_file (line 31) | def read_file(filename, mode="rb"): function flag_default (line 52) | def flag_default(name): function config_help (line 61) | def config_help(name, hidden=False): class HelpfulArgumentGroup (line 69) | class HelpfulArgumentGroup(object): method __init__ (line 78) | def __init__(self, helpful_arg_parser, topic): method add_argument (line 82) | def add_argument(self, *args, **kwargs): class CustomHelpFormatter (line 87) | class CustomHelpFormatter(argparse.HelpFormatter): method _get_help_string (line 93) | def _get_help_string(self, action): class _DomainsAction (line 103) | class _DomainsAction(argparse.Action): method __call__ (line 106) | def __call__(self, parser, namespace, domain, option_string=None): function add_domains (line 111) | def add_domains(args_or_config, domains): class CaseInsensitiveList (line 136) | class CaseInsensitiveList(list): method __contains__ (line 142) | def __contains__(self, element): function _user_agent_comment_type (line 146) | def _user_agent_comment_type(value): class _EncodeReasonAction (line 152) | class _EncodeReasonAction(argparse.Action): method __call__ (line 155) | def __call__(self, parser, namespace, reason, option_string=None): function parse_preferred_challenges (line 161) | def parse_preferred_challenges(pref_challs): class _PrefChallAction (line 185) | class _PrefChallAction(argparse.Action): method __call__ (line 188) | def __call__(self, parser, namespace, pref_challs, option_string=None): class _DeployHookAction (line 196) | class _DeployHookAction(argparse.Action): method __call__ (line 199) | def __call__(self, parser, namespace, values, option_string=None): class _RenewHookAction (line 207) | class _RenewHookAction(argparse.Action): method __call__ (line 210) | def __call__(self, parser, namespace, values, option_string=None): function nonnegative_int (line 218) | def nonnegative_int(value): FILE: certbot/_internal/cli/group_adder.py function _add_all_groups (line 6) | def _add_all_groups(helpful): FILE: certbot/_internal/cli/helpful.py class HelpfulArgumentParser (line 45) | class HelpfulArgumentParser(object): method __init__ (line 53) | def __init__(self, args, plugins, detect_defaults=False): method _list_subcommands (line 128) | def _list_subcommands(self): method _usage_string (line 139) | def _usage_string(self, plugins, help_arg): method remove_config_file_domains_for_renewal (line 173) | def remove_config_file_domains_for_renewal(self, parsed_args): method parse_args (line 181) | def parse_args(self): method set_test_server (line 237) | def set_test_server(self, parsed_args): method handle_csr (line 266) | def handle_csr(self, parsed_args): method determine_verb (line 300) | def determine_verb(self): method prescan_for_flag (line 324) | def prescan_for_flag(self, flag, possible_arguments): method add (line 345) | def add(self, topics, *args, **kwargs): method modify_kwargs_for_default_detection (line 378) | def modify_kwargs_for_default_detection(self, **kwargs): method add_deprecated_argument (line 400) | def add_deprecated_argument(self, argument_name, num_args): method add_group (line 414) | def add_group(self, topic, verbs=(), **kwargs): method add_plugin_args (line 436) | def add_plugin_args(self, plugins): method determine_help_topics (line 448) | def determine_help_topics(self, chosen_topic): FILE: certbot/_internal/cli/paths_parser.py function _paths_parser (line 11) | def _paths_parser(helpful): FILE: certbot/_internal/cli/plugins_parsing.py function _plugins_parsing (line 5) | def _plugins_parsing(helpful, plugins): FILE: certbot/_internal/cli/report_config_interaction.py function report_config_interaction (line 8) | def report_config_interaction(modified, modifiers): FILE: certbot/_internal/cli/subparsers.py function _create_subparsers (line 14) | def _create_subparsers(helpful): FILE: certbot/_internal/client.py function acme_from_config_key (line 39) | def acme_from_config_key(config, key, regr=None): function determine_user_agent (line 47) | def determine_user_agent(config): function ua_flags (line 78) | def ua_flags(config): class DummyConfig (line 97) | class DummyConfig(object): method __init__ (line 99) | def __init__(self): method __getattr__ (line 105) | def __getattr__(self, name): function sample_user_agent (line 109) | def sample_user_agent(): function register (line 115) | def register(config, account_storage, tos_cb=None): function perform_registration (line 187) | def perform_registration(acme, config, tos_cb): class Client (line 232) | class Client(object): method __init__ (line 248) | def __init__(self, config, account_, auth, installer, acme=None): method obtain_certificate_from_csr (line 266) | def obtain_certificate_from_csr(self, csr, orderr=None): method obtain_certificate (line 296) | def obtain_certificate(self, domains, old_keypath=None): method _get_order_and_authorizations (line 363) | def _get_order_and_authorizations(self, csr_pem, best_effort): method obtain_and_enroll_certificate (line 393) | def obtain_and_enroll_certificate(self, domains, certname): method _choose_lineagename (line 429) | def _choose_lineagename(self, domains, certname): method save_certificate (line 448) | def save_certificate(self, cert_pem, chain_pem, method deploy_certificate (line 488) | def deploy_certificate(self, domains, privkey_path, method enhance_config (line 524) | def enhance_config(self, domains, chain_path, ask_redirect=True): method apply_enhancement (line 572) | def apply_enhancement(self, domains, enhancement, options=None): method _recovery_routine_with_msg (line 607) | def _recovery_routine_with_msg(self, success_msg): method _rollback_and_restart (line 617) | def _rollback_and_restart(self, success_msg): function validate_key_csr (line 639) | def validate_key_csr(privkey, csr=None): function rollback (line 685) | def rollback(default_installer, checkpoints, config, plugins): function _open_pem_file (line 706) | def _open_pem_file(cli_arg_path, pem_path): function _save_chain (line 724) | def _save_chain(chain_pem, chain_file): FILE: certbot/_internal/configuration.py class NamespaceConfig (line 16) | class NamespaceConfig(object): method __init__ (line 45) | def __init__(self, namespace): method __getattr__ (line 55) | def __getattr__(self, name): method __setattr__ (line 58) | def __setattr__(self, name, value): method server_path (line 62) | def server_path(self): method accounts_dir (line 68) | def accounts_dir(self): # pylint: disable=missing-function-docstring method accounts_dir_for_server_path (line 71) | def accounts_dir_for_server_path(self, server_path): method backup_dir (line 78) | def backup_dir(self): # pylint: disable=missing-function-docstring method csr_dir (line 82) | def csr_dir(self): # pylint: disable=missing-function-docstring method in_progress_dir (line 86) | def in_progress_dir(self): # pylint: disable=missing-function-docstring method key_dir (line 90) | def key_dir(self): # pylint: disable=missing-function-docstring method temp_checkpoint_dir (line 94) | def temp_checkpoint_dir(self): # pylint: disable=missing-function-doc... method __deepcopy__ (line 98) | def __deepcopy__(self, _memo): method default_archive_dir (line 105) | def default_archive_dir(self): # pylint: disable=missing-function-doc... method live_dir (line 109) | def live_dir(self): # pylint: disable=missing-function-docstring method renewal_configs_dir (line 113) | def renewal_configs_dir(self): # pylint: disable=missing-function-doc... method renewal_hooks_dir (line 118) | def renewal_hooks_dir(self): method renewal_pre_hooks_dir (line 124) | def renewal_pre_hooks_dir(self): method renewal_deploy_hooks_dir (line 130) | def renewal_deploy_hooks_dir(self): method renewal_post_hooks_dir (line 136) | def renewal_post_hooks_dir(self): function check_config_sanity (line 142) | def check_config_sanity(config): FILE: certbot/_internal/display/completer.py class Completer (line 11) | class Completer(object): method __init__ (line 28) | def __init__(self): method complete (line 31) | def complete(self, text, state): method __enter__ (line 46) | def __enter__(self): method __exit__ (line 60) | def __exit__(self, unused_type, unused_value, unused_traceback): FILE: certbot/_internal/display/dummy_readline.py function get_completer (line 4) | def get_completer(): function get_completer_delims (line 8) | def get_completer_delims(): function parse_and_bind (line 12) | def parse_and_bind(unused_command): function set_completer (line 16) | def set_completer(unused_function=None): function set_completer_delims (line 20) | def set_completer_delims(unused_delims): FILE: certbot/_internal/display/enhancements.py function ask (line 16) | def ask(enhancement): function redirect_by_default (line 36) | def redirect_by_default(): FILE: certbot/_internal/eff.py function handle_subscription (line 13) | def handle_subscription(config): function _want_subscription (line 32) | def _want_subscription(): function subscribe (line 49) | def subscribe(email): function _check_response (line 63) | def _check_response(response): function _report_failure (line 83) | def _report_failure(reason=None): FILE: certbot/_internal/error_handler.py class ErrorHandler (line 48) | class ErrorHandler(object): method __init__ (line 77) | def __init__(self, func, *args, **kwargs): method __enter__ (line 86) | def __enter__(self): method __exit__ (line 90) | def __exit__(self, exec_type, exec_value, trace): method register (line 111) | def register(self, func, *args, **kwargs): method _call_registered (line 120) | def _call_registered(self): method _set_signal_handlers (line 130) | def _set_signal_handlers(self): method _reset_signal_handlers (line 139) | def _reset_signal_handlers(self): method _signal_handler (line 145) | def _signal_handler(self, signum, unused_frame): method _call_signals (line 158) | def _call_signals(self): class ExitHandler (line 164) | class ExitHandler(ErrorHandler): method __init__ (line 171) | def __init__(self, func, *args, **kwargs): FILE: certbot/_internal/hooks.py function validate_hooks (line 19) | def validate_hooks(config): function _prog (line 27) | def _prog(shell_cmd): function validate_hook (line 43) | def validate_hook(shell_cmd, hook_name): function pre_hook (line 61) | def pre_hook(config): function _run_pre_hook_if_necessary (line 85) | def _run_pre_hook_if_necessary(command): function post_hook (line 101) | def post_hook(config): function _run_eventually (line 135) | def _run_eventually(command): function run_saved_post_hooks (line 148) | def run_saved_post_hooks(): function deploy_hook (line 154) | def deploy_hook(config, domains, lineage_path): function renew_hook (line 168) | def renew_hook(config, domains, lineage_path): function _run_deploy_hook (line 200) | def _run_deploy_hook(command, domains, lineage_path, dry_run): function _run_hook (line 224) | def _run_hook(cmd_name, shell_cmd): function execute (line 236) | def execute(cmd_name, shell_cmd): function list_hooks (line 262) | def list_hooks(dir_path): FILE: certbot/_internal/lock.py function lock_dir (line 23) | def lock_dir(dir_path): class LockFile (line 41) | class LockFile(object): method __init__ (line 55) | def __init__(self, path): method __repr__ (line 67) | def __repr__(self): method acquire (line 76) | def acquire(self): method release (line 84) | def release(self): method is_locked (line 91) | def is_locked(self): class _BaseLockMechanism (line 100) | class _BaseLockMechanism(object): method __init__ (line 101) | def __init__(self, path): method is_locked (line 110) | def is_locked(self): method acquire (line 118) | def acquire(self): # pylint: disable=missing-function-docstring method release (line 121) | def release(self): # pylint: disable=missing-function-docstring class _UnixLockMechanism (line 125) | class _UnixLockMechanism(_BaseLockMechanism): method acquire (line 132) | def acquire(self): method _try_lock (line 147) | def _try_lock(self, fd): method _lock_success (line 161) | def _lock_success(self, fd): method release (line 188) | def release(self): class _WindowsLockMechanism (line 213) | class _WindowsLockMechanism(_BaseLockMechanism): method acquire (line 229) | def acquire(self): method release (line 250) | def release(self): FILE: certbot/_internal/log.py function pre_arg_parse_setup (line 39) | def pre_arg_parse_setup(): function post_arg_parse_setup (line 77) | def post_arg_parse_setup(config): function setup_log_file_handler (line 123) | def setup_log_file_handler(config, logfile, fmt): class ColoredStreamHandler (line 154) | class ColoredStreamHandler(logging.StreamHandler): method __init__ (line 165) | def __init__(self, stream=None): method format (line 171) | def format(self, record): class MemoryHandler (line 186) | class MemoryHandler(logging.handlers.MemoryHandler): method __init__ (line 193) | def __init__(self, target=None, capacity=10000): method close (line 197) | def close(self): method flush (line 205) | def flush(self, force=False): # pylint: disable=arguments-differ method shouldFlush (line 218) | def shouldFlush(self, record): class TempHandler (line 230) | class TempHandler(logging.StreamHandler): method __init__ (line 240) | def __init__(self): method emit (line 247) | def emit(self, record): method close (line 256) | def close(self): function pre_arg_parse_except_hook (line 275) | def pre_arg_parse_except_hook(memory_handler, *args, **kwargs): function post_arg_parse_except_hook (line 302) | def post_arg_parse_except_hook(exc_type, exc_value, trace, debug, log_pa... function exit_with_log_path (line 337) | def exit_with_log_path(log_path): FILE: certbot/_internal/main.py function _suggest_donation_if_appropriate (line 49) | def _suggest_donation_if_appropriate(config): function _report_successful_dry_run (line 69) | def _report_successful_dry_run(config): function _get_and_save_cert (line 85) | def _get_and_save_cert(le_client, config, domains=None, certname=None, l... function _handle_subset_cert_request (line 132) | def _handle_subset_cert_request(config, domains, cert): function _handle_identical_cert_request (line 179) | def _handle_identical_cert_request(config, lineage): function _find_lineage_for_domains (line 229) | def _find_lineage_for_domains(config, domains): function _find_cert (line 268) | def _find_cert(config, domains, certname): function _find_lineage_for_domains_and_certname (line 291) | def _find_lineage_for_domains_and_certname(config, domains, certname): function _get_added_removed (line 329) | def _get_added_removed(after, before): function _format_list (line 339) | def _format_list(character, strings): function _ask_user_to_confirm_new_names (line 351) | def _ask_user_to_confirm_new_names(config, new_domains, certname, old_do... function _find_domains_or_certname (line 388) | def _find_domains_or_certname(config, installer, question=None): function _report_new_cert (line 429) | def _report_new_cert(config, cert_path, fullchain_path, key_path=None): function _determine_account (line 471) | def _determine_account(config): function _delete_if_appropriate (line 531) | def _delete_if_appropriate(config): function _init_le_client (line 586) | def _init_le_client(config, authenticator, installer): function unregister (line 613) | def unregister(config, unused_plugins): function register (line 654) | def register(config, unused_plugins): function update_account (line 684) | def update_account(config, unused_plugins): function _install_cert (line 729) | def _install_cert(config, le_client, domains, lineage=None): function install (line 756) | def install(config, plugins): function _populate_from_certname (line 815) | def _populate_from_certname(config): function _check_certificate_and_key (line 832) | def _check_certificate_and_key(config): function plugins_cmd (line 839) | def plugins_cmd(config, plugins): function enhance (line 878) | def enhance(config, plugins): function rollback (line 937) | def rollback(config, plugins): function update_symlinks (line 952) | def update_symlinks(config, unused_plugins): function rename (line 970) | def rename(config, unused_plugins): function delete (line 988) | def delete(config, unused_plugins): function certificates (line 1006) | def certificates(config, unused_plugins): function revoke (line 1022) | def revoke(config, unused_plugins): function run (line 1067) | def run(config, plugins): function _csr_get_and_save_cert (line 1122) | def _csr_get_and_save_cert(config, le_client): function renew_cert (line 1150) | def renew_cert(config, plugins, lineage): function certonly (line 1192) | def certonly(config, plugins): function renew (line 1241) | def renew(config, unused_plugins): function make_or_verify_needed_dirs (line 1260) | def make_or_verify_needed_dirs(config): function set_displayer (line 1280) | def set_displayer(config): function main (line 1302) | def main(cli_args=None): FILE: certbot/_internal/plugins/disco.py class PluginEntryPoint (line 25) | class PluginEntryPoint(object): method __init__ (line 52) | def __init__(self, entry_point): method entry_point_to_plugin_name (line 60) | def entry_point_to_plugin_name(cls, entry_point): method description (line 67) | def description(self): method description_with_name (line 72) | def description_with_name(self): method long_description (line 77) | def long_description(self): method hidden (line 85) | def hidden(self): method ifaces (line 89) | def ifaces(self, *ifaces_groups): method initialized (line 97) | def initialized(self): method init (line 101) | def init(self, config=None): method verify (line 108) | def verify(self, ifaces): method prepared (line 123) | def prepared(self): method prepare (line 129) | def prepare(self): method misconfigured (line 150) | def misconfigured(self): method problem (line 155) | def problem(self): method available (line 162) | def available(self): method __repr__ (line 166) | def __repr__(self): method __str__ (line 169) | def __str__(self): class PluginsRegistry (line 187) | class PluginsRegistry(Mapping): method __init__ (line 190) | def __init__(self, plugins): method find_all (line 201) | def find_all(cls): method __getitem__ (line 220) | def __getitem__(self, name): method __iter__ (line 223) | def __iter__(self): method __len__ (line 226) | def __len__(self): method init (line 229) | def init(self, config): method filter (line 234) | def filter(self, pred): method visible (line 239) | def visible(self): method ifaces (line 243) | def ifaces(self, *ifaces_groups): method verify (line 247) | def verify(self, ifaces): method prepare (line 251) | def prepare(self): method available (line 255) | def available(self): method find_init (line 260) | def find_init(self, plugin): method __repr__ (line 282) | def __repr__(self): method __str__ (line 287) | def __str__(self): FILE: certbot/_internal/plugins/manual.py class Authenticator (line 18) | class Authenticator(common.Plugin): method __init__ (line 66) | def __init__(self, *args, **kwargs): method add_parser_arguments (line 76) | def add_parser_arguments(cls, add): method prepare (line 84) | def prepare(self): # pylint: disable=missing-function-docstring method _validate_hooks (line 92) | def _validate_hooks(self): method more_info (line 100) | def more_info(self): # pylint: disable=missing-function-docstring method get_chall_pref (line 106) | def get_chall_pref(self, domain): method perform (line 110) | def perform(self, achalls): # pylint: disable=missing-function-docstring method _verify_ip_logging_ok (line 123) | def _verify_ip_logging_ok(self): method _perform_achall_with_script (line 137) | def _perform_achall_with_script(self, achall): method _perform_achall_manually (line 149) | def _perform_achall_manually(self, achall): method cleanup (line 173) | def cleanup(self, achalls): # pylint: disable=missing-function-docstring method _execute_hook (line 183) | def _execute_hook(self, hook_name): FILE: certbot/_internal/plugins/null.py class Installer (line 15) | class Installer(common.Plugin): method prepare (line 23) | def prepare(self): method more_info (line 26) | def more_info(self): method get_all_names (line 29) | def get_all_names(self): method deploy_cert (line 32) | def deploy_cert(self, domain, cert_path, key_path, method enhance (line 36) | def enhance(self, domain, enhancement, options=None): method supported_enhancements (line 39) | def supported_enhancements(self): method save (line 42) | def save(self, title=None, temporary=False): method rollback_checkpoints (line 45) | def rollback_checkpoints(self, rollback=1): method recovery_routine (line 48) | def recovery_routine(self): method config_test (line 51) | def config_test(self): method restart (line 54) | def restart(self): FILE: certbot/_internal/plugins/selection.py function pick_configurator (line 17) | def pick_configurator( function pick_installer (line 27) | def pick_installer(config, default, plugins, function pick_authenticator (line 34) | def pick_authenticator( function get_unprepared_installer (line 41) | def get_unprepared_installer(config, plugins): function pick_plugin (line 70) | def pick_plugin(config, default, plugins, question, ifaces): function choose_plugin (line 124) | def choose_plugin(prepared, question): function record_chosen_plugins (line 168) | def record_chosen_plugins(config, plugins, auth, inst): function choose_configurator_plugins (line 176) | def choose_configurator_plugins(config, plugins, verb): function set_configurator (line 239) | def set_configurator(previously, now): function cli_plugin_requests (line 255) | def cli_plugin_requests(config): function diagnose_configurator_problem (line 310) | def diagnose_configurator_problem(cfg_type, requested, plugins): FILE: certbot/_internal/plugins/standalone.py class ServerManager (line 32) | class ServerManager(object): method __init__ (line 45) | def __init__(self, certs, http_01_resources): method run (line 50) | def run(self, port, challenge_type, listenaddr=""): method stop (line 84) | def stop(self, port): method running (line 97) | def running(self): class Authenticator (line 112) | class Authenticator(common.Plugin): method __init__ (line 123) | def __init__(self, *args, **kwargs): method add_parser_arguments (line 139) | def add_parser_arguments(cls, add): method more_info (line 142) | def more_info(self): # pylint: disable=missing-function-docstring method prepare (line 148) | def prepare(self): # pylint: disable=missing-function-docstring method get_chall_pref (line 151) | def get_chall_pref(self, domain): method perform (line 155) | def perform(self, achalls): # pylint: disable=missing-function-docstring method _try_perform_single (line 158) | def _try_perform_single(self, achall): method _perform_single (line 165) | def _perform_single(self, achall): method _perform_http_01 (line 170) | def _perform_http_01(self, achall): method cleanup (line 180) | def cleanup(self, achalls): # pylint: disable=missing-function-docstring function _handle_perform_error (line 191) | def _handle_perform_error(error): FILE: certbot/_internal/plugins/webroot.py class Authenticator (line 33) | class Authenticator(common.Plugin): method more_info (line 44) | def more_info(self): # pylint: disable=missing-function-docstring method add_parser_arguments (line 48) | def add_parser_arguments(cls, add): method get_chall_pref (line 65) | def get_chall_pref(self, domain): # pragma: no cover method __init__ (line 69) | def __init__(self, *args, **kwargs): method prepare (line 77) | def prepare(self): # pylint: disable=missing-function-docstring method perform (line 80) | def perform(self, achalls): # pylint: disable=missing-function-docstring method _set_webroots (line 87) | def _set_webroots(self, achalls): method _prompt_for_webroot (line 109) | def _prompt_for_webroot(self, domain, known_webroots): method _prompt_with_webroot_list (line 124) | def _prompt_with_webroot_list(self, domain, known_webroots): method _prompt_for_new_webroot (line 139) | def _prompt_for_new_webroot(self, domain, allowraise=False): # pylint... method _create_challenge_dirs (line 152) | def _create_challenge_dirs(self): method _get_validation_path (line 196) | def _get_validation_path(self, root_path, achall): # pylint: no-self-use method _perform_single (line 199) | def _perform_single(self, achall): method cleanup (line 218) | def cleanup(self, achalls): # pylint: disable=missing-function-docstring class _WebrootMapAction (line 240) | class _WebrootMapAction(argparse.Action): method __call__ (line 243) | def __call__(self, parser, namespace, webroot_map, option_string=None): class _WebrootPathAction (line 250) | class _WebrootPathAction(argparse.Action): method __init__ (line 253) | def __init__(self, *args, **kwargs): method __call__ (line 257) | def __call__(self, parser, namespace, webroot_path, option_string=None): function _validate_webroot (line 275) | def _validate_webroot(webroot_path): FILE: certbot/_internal/renewal.py function _reconstitute (line 45) | def _reconstitute(config, full_path): function _restore_webroot_config (line 102) | def _restore_webroot_config(config, renewalparams): function _restore_plugin_configs (line 119) | def _restore_plugin_configs(config, renewalparams): function restore_required_config_elements (line 162) | def restore_required_config_elements(config, renewalparams): function _restore_pref_challs (line 183) | def _restore_pref_challs(unused_name, value): function _restore_bool (line 205) | def _restore_bool(name, value): function _restore_int (line 224) | def _restore_int(name, value): function _restore_str (line 246) | def _restore_str(unused_name, value): function should_renew (line 259) | def should_renew(config, lineage): function _avoid_invalidating_lineage (line 274) | def _avoid_invalidating_lineage(config, lineage, original_server): function renew_cert (line 296) | def renew_cert(config, domains, le_client, lineage): function report (line 319) | def report(msgs, category): function _renew_describe_results (line 324) | def _renew_describe_results(config, renew_successes, renew_failures, function handle_renewal_request (line 374) | def handle_renewal_request(config): FILE: certbot/_internal/reporter.py class Reporter (line 19) | class Reporter(object): method __init__ (line 36) | def __init__(self, config): method add_message (line 40) | def add_message(self, msg, priority, on_crash=True): method print_messages (line 56) | def print_messages(self): FILE: certbot/_internal/storage.py function renewal_conf_files (line 36) | def renewal_conf_files(config): function renewal_file_for_certname (line 49) | def renewal_file_for_certname(config, certname): function cert_path_for_cert_name (line 58) | def cert_path_for_cert_name(config, cert_name): function config_with_defaults (line 72) | def config_with_defaults(config=None): function add_time_interval (line 79) | def add_time_interval(base_time, interval, textparser=parsedatetime.Cale... function write_renewal_config (line 103) | def write_renewal_config(o_filename, n_filename, archive_dir, target, re... function rename_renewal_config (line 155) | def rename_renewal_config(prev_name, new_name, cli_config): function update_configuration (line 173) | def update_configuration(lineagename, archive_dir, target, cli_config): function get_link_target (line 201) | def get_link_target(link): function _write_live_readme_to (line 222) | def _write_live_readme_to(readme_path, is_base_dir=False): function _relevant (line 243) | def _relevant(namespaces, option): function relevant_values (line 259) | def relevant_values(all_values): function lineagename_for_filename (line 281) | def lineagename_for_filename(config_filename): function renewal_filename_for_lineagename (line 289) | def renewal_filename_for_lineagename(config, lineagename): function _relpath_from_file (line 294) | def _relpath_from_file(archive_dir, from_file): function full_archive_path (line 298) | def full_archive_path(config_obj, cli_config, lineagename): function _full_live_path (line 311) | def _full_live_path(cli_config, lineagename): function delete_files (line 315) | def delete_files(config, certname): class RenewableCert (line 381) | class RenewableCert(interfaces.RenewableCert): method __init__ (line 416) | def __init__(self, config_filename, cli_config, update_symlinks=False): method key_path (line 469) | def key_path(self): method cert_path (line 474) | def cert_path(self): method chain_path (line 479) | def chain_path(self): method fullchain_path (line 484) | def fullchain_path(self): method lineagename (line 489) | def lineagename(self): method target_expiry (line 498) | def target_expiry(self): method archive_dir (line 507) | def archive_dir(self): method relative_archive_dir (line 512) | def relative_archive_dir(self, from_file): method is_test_cert (line 520) | def is_test_cert(self): method _check_symlinks (line 527) | def _check_symlinks(self): method _update_symlinks (line 539) | def _update_symlinks(self): method _consistent (line 550) | def _consistent(self): method _fix (line 618) | def _fix(self): method _previous_symlinks (line 636) | def _previous_symlinks(self): method _fix_symlinks (line 651) | def _fix_symlinks(self): method current_target (line 670) | def current_target(self, kind): method current_version (line 690) | def current_version(self, kind): method version (line 717) | def version(self, kind, version): method available_versions (line 737) | def available_versions(self, kind): method newest_available_version (line 758) | def newest_available_version(self, kind): method latest_common_version (line 770) | def latest_common_version(self): method next_free_version (line 785) | def next_free_version(self): method ensure_deployed (line 799) | def ensure_deployed(self): method has_pending_deployment (line 815) | def has_pending_deployment(self): method _update_link_to (line 829) | def _update_link_to(self, kind, version): method update_all_links_to (line 855) | def update_all_links_to(self, version): method names (line 872) | def names(self): method ocsp_revoked (line 886) | def ocsp_revoked(self, version): method autorenewal_is_enabled (line 914) | def autorenewal_is_enabled(self): method should_autorenew (line 926) | def should_autorenew(self): method new_lineage (line 964) | def new_lineage(cls, lineagename, cert, privkey, chain, cli_config): method save_successor (line 1058) | def save_successor(self, prior_version, new_cert, FILE: certbot/_internal/updater.py function run_generic_updaters (line 11) | def run_generic_updaters(config, lineage, plugins): function run_renewal_deployer (line 38) | def run_renewal_deployer(config, lineage, installer): function _run_updaters (line 63) | def _run_updaters(lineage, installer, config): function _run_enhancement_updaters (line 80) | def _run_enhancement_updaters(lineage, installer, config): function _run_enhancement_deployers (line 102) | def _run_enhancement_deployers(lineage, installer, config): FILE: certbot/achallenges.py class AnnotatedChallenge (line 30) | class AnnotatedChallenge(jose.ImmutableMap): method __getattr__ (line 42) | def __getattr__(self, name): class KeyAuthorizationAnnotatedChallenge (line 46) | class KeyAuthorizationAnnotatedChallenge(AnnotatedChallenge): method response_and_validation (line 50) | def response_and_validation(self, *args, **kwargs): class DNS (line 56) | class DNS(AnnotatedChallenge): FILE: certbot/compat/_path.py function realpath (line 32) | def realpath(*unused_args, **unused_kwargs): FILE: certbot/compat/filesystem.py function chmod (line 27) | def chmod(file_path, mode): function copy_ownership_and_apply_mode (line 57) | def copy_ownership_and_apply_mode(src, dst, mode, copy_user, copy_group): function check_mode (line 84) | def check_mode(file_path, mode): function check_owner (line 101) | def check_owner(file_path): function check_permissions (line 123) | def check_permissions(file_path, mode): function open (line 135) | def open(file_path, flags, mode=0o777): # pylint: disable=redefined-bui... function makedirs (line 204) | def makedirs(file_path, mode=0o777): function mkdir (line 226) | def mkdir(file_path, mode=0o777): function replace (line 257) | def replace(src, dst): function realpath (line 273) | def realpath(file_path): function is_executable (line 310) | def is_executable(path): function has_world_permissions (line 324) | def has_world_permissions(path): function compute_private_key_mode (line 345) | def compute_private_key_mode(old_key, base_mode): function has_same_ownership (line 366) | def has_same_ownership(path1, path2): function has_min_permissions (line 391) | def has_min_permissions(path, min_mode): function _win_is_executable (line 436) | def _win_is_executable(path): function _apply_win_mode (line 452) | def _apply_win_mode(file_path, mode): function _generate_dacl (line 471) | def _generate_dacl(user_sid, mode): function _analyze_mode (line 505) | def _analyze_mode(mode): function _copy_win_ownership (line 520) | def _copy_win_ownership(src, dst): function _generate_windows_flags (line 532) | def _generate_windows_flags(rights_desc): function _check_win_mode (line 563) | def _check_win_mode(file_path, mode): function _compare_dacls (line 585) | def _compare_dacls(dacl1, dacl2): function _get_current_user (line 594) | def _get_current_user(): FILE: certbot/compat/misc.py function raise_for_non_administrative_windows_rights (line 25) | def raise_for_non_administrative_windows_rights(): function readline_with_timeout (line 37) | def readline_with_timeout(timeout, prompt): function get_default_folder (line 79) | def get_default_folder(folder_type): function underscores_for_unsupported_characters_in_path (line 97) | def underscores_for_unsupported_characters_in_path(path): FILE: certbot/compat/os.py function chmod (line 53) | def chmod(*unused_args, **unused_kwargs): function chown (line 62) | def chown(*unused_args, **unused_kwargs): function open (line 73) | def open(*unused_args, **unused_kwargs): function mkdir (line 81) | def mkdir(*unused_args, **unused_kwargs): function makedirs (line 92) | def makedirs(*unused_args, **unused_kwargs): function rename (line 100) | def rename(*unused_args, **unused_kwargs): function replace (line 108) | def replace(*unused_args, **unused_kwargs): function access (line 116) | def access(*unused_args, **unused_kwargs): function stat (line 125) | def stat(*unused_args, **unused_kwargs): function fstat (line 134) | def fstat(*unused_args, **unused_kwargs): FILE: certbot/crypto_util.py function init_save_key (line 36) | def init_save_key(key_size, key_dir, keyname="key-certbot.pem"): function init_save_csr (line 72) | def init_save_csr(privkey, names, path): function valid_csr (line 107) | def valid_csr(csr): function csr_matches_pubkey (line 127) | def csr_matches_pubkey(csr, privkey): function import_csr_file (line 147) | def import_csr_file(csrfile, data): function make_key (line 176) | def make_key(bits): function valid_privkey (line 191) | def valid_privkey(privkey): function verify_renewable_cert (line 207) | def verify_renewable_cert(renewable_cert): function verify_renewable_cert_sig (line 225) | def verify_renewable_cert_sig(renewable_cert): function verify_signed_payload (line 249) | def verify_signed_payload(public_key, signature, payload, signature_hash... function verify_cert_matches_priv_key (line 280) | def verify_cert_matches_priv_key(cert_path, key_path): function verify_fullchain (line 302) | def verify_fullchain(renewable_cert): function pyopenssl_load_certificate (line 329) | def pyopenssl_load_certificate(data): function _load_cert_or_req (line 347) | def _load_cert_or_req(cert_or_req_str, load_func, function _get_sans_from_cert_or_req (line 356) | def _get_sans_from_cert_or_req(cert_or_req_str, load_func, function get_sans_from_cert (line 363) | def get_sans_from_cert(cert, typ=crypto.FILETYPE_PEM): function _get_names_from_cert_or_req (line 377) | def _get_names_from_cert_or_req(cert_or_req, load_func, typ): function _get_names_from_loaded_cert_or_req (line 382) | def _get_names_from_loaded_cert_or_req(loaded_cert_or_req): function get_names_from_cert (line 387) | def get_names_from_cert(csr, typ=crypto.FILETYPE_PEM): function dump_pyopenssl_chain (line 401) | def dump_pyopenssl_chain(chain, filetype=crypto.FILETYPE_PEM): function notBefore (line 413) | def notBefore(cert_path): function notAfter (line 425) | def notAfter(cert_path): function _notAfterBefore (line 437) | def _notAfterBefore(cert_path, method): function sha256sum (line 465) | def sha256sum(filename): function cert_and_chain_from_fullchain (line 481) | def cert_and_chain_from_fullchain(fullchain_pem): FILE: certbot/display/ops.py function get_email (line 19) | def get_email(invalid=False, optional=True): function choose_account (line 73) | def choose_account(accounts): function choose_values (line 89) | def choose_values(values, question=None): function choose_names (line 104) | def choose_names(installer, question=None): function get_valid_domains (line 134) | def get_valid_domains(domains): function _sort_names (line 150) | def _sort_names(FQDNs): function _filter_names (line 161) | def _filter_names(names, override_question=None): function _choose_names_manually (line 183) | def _choose_names_manually(prompt_prefix=""): function success_installation (line 237) | def success_installation(domains): function success_renewal (line 252) | def success_renewal(domains): function success_revocation (line 268) | def success_revocation(cert_path): function _gen_ssl_lab_urls (line 282) | def _gen_ssl_lab_urls(domains): function _gen_https_names (line 291) | def _gen_https_names(domains): function _get_validated (line 312) | def _get_validated(method, validator, message, default=None, **kwargs): function validated_input (line 339) | def validated_input(validator, *args, **kwargs): function validated_directory (line 354) | def validated_directory(validator, *args, **kwargs): FILE: certbot/display/util.py function _wrap_lines (line 37) | def _wrap_lines(msg): function input_with_timeout (line 59) | def input_with_timeout(prompt=None, timeout=36000.0): class FileDisplay (line 90) | class FileDisplay(object): method __init__ (line 94) | def __init__(self, outfile, force_interactive): method notification (line 100) | def notification(self, message, pause=True, method menu (line 124) | def menu(self, message, choices, ok_label=None, cancel_label=None, # ... method input (line 157) | def input(self, message, default=None, method yesno (line 184) | def yesno(self, message, yes_label="Yes", no_label="No", default=None, method checklist (line 226) | def checklist(self, message, tags, default=None, method _return_default (line 267) | def _return_default(self, prompt, default, cli_flag, force_interactive): method _can_interact (line 296) | def _can_interact(self, force_interactive): method directory_select (line 318) | def directory_select(self, message, default=None, cli_flag=None, method _scrub_checklist_input (line 336) | def _scrub_checklist_input(self, indices, tags): method _print_menu (line 362) | def _print_menu(self, message, choices): method _get_valid_int_ans (line 391) | def _get_valid_int_ans(self, max_): function assert_valid_call (line 428) | def assert_valid_call(prompt, default, cli_flag, force_interactive): class NoninteractiveDisplay (line 447) | class NoninteractiveDisplay(object): method __init__ (line 450) | def __init__(self, outfile, *unused_args, **unused_kwargs): method _interaction_fail (line 454) | def _interaction_fail(self, message, cli_flag, extra=""): method notification (line 464) | def notification(self, message, pause=False, wrap=True, **unused_kwarg... method menu (line 479) | def menu(self, message, choices, ok_label=None, cancel_label=None, method input (line 503) | def input(self, message, default=None, cli_flag=None, **unused_kwargs): method yesno (line 519) | def yesno(self, message, yes_label=None, no_label=None, # pylint: dis... method checklist (line 535) | def checklist(self, message, tags, default=None, method directory_select (line 553) | def directory_select(self, message, default=None, function separate_list_input (line 574) | def separate_list_input(input_): function _parens_around_char (line 589) | def _parens_around_char(label): FILE: certbot/errors.py class Error (line 4) | class Error(Exception): class AccountStorageError (line 8) | class AccountStorageError(Error): class AccountNotFound (line 12) | class AccountNotFound(AccountStorageError): class ReverterError (line 16) | class ReverterError(Error): class SubprocessError (line 20) | class SubprocessError(Error): class CertStorageError (line 24) | class CertStorageError(Error): class HookCommandNotFound (line 28) | class HookCommandNotFound(Error): class SignalExit (line 32) | class SignalExit(Error): class OverlappingMatchFound (line 35) | class OverlappingMatchFound(Error): class LockError (line 38) | class LockError(Error): class AuthorizationError (line 43) | class AuthorizationError(Error): class FailedChallenges (line 47) | class FailedChallenges(AuthorizationError): method __init__ (line 53) | def __init__(self, failed_achalls): method __str__ (line 58) | def __str__(self): class PluginError (line 66) | class PluginError(Error): class PluginEnhancementAlreadyPresent (line 70) | class PluginEnhancementAlreadyPresent(Error): class PluginSelectionError (line 74) | class PluginSelectionError(Error): class NoInstallationError (line 78) | class NoInstallationError(PluginError): class MisconfigurationError (line 82) | class MisconfigurationError(PluginError): class NotSupportedError (line 86) | class NotSupportedError(PluginError): class PluginStorageError (line 90) | class PluginStorageError(PluginError): class StandaloneBindError (line 94) | class StandaloneBindError(Error): method __init__ (line 97) | def __init__(self, socket_error, port): class ConfigurationError (line 104) | class ConfigurationError(Error): class MissingCommandlineFlag (line 109) | class MissingCommandlineFlag(Error): FILE: certbot/interfaces.py class AccountStorage (line 11) | class AccountStorage(object): method find_all (line 15) | def find_all(self): # pragma: no cover method load (line 25) | def load(self, account_id): # pragma: no cover method save (line 35) | def save(self, account, client): # pragma: no cover class IPluginFactory (line 44) | class IPluginFactory(zope.interface.Interface): method __call__ (line 76) | def __call__(config, name): # pylint: disable=signature-differs method inject_parser_options (line 84) | def inject_parser_options(parser, name): class IPlugin (line 99) | class IPlugin(zope.interface.Interface): method prepare (line 102) | def prepare(): # type: ignore method more_info (line 121) | def more_info(): # type: ignore class IAuthenticator (line 132) | class IAuthenticator(IPlugin): method get_chall_pref (line 140) | def get_chall_pref(domain): method perform (line 153) | def perform(achalls): method cleanup (line 173) | def cleanup(achalls): class IConfig (line 188) | class IConfig(zope.interface.Interface): class IInstaller (line 257) | class IInstaller(IPlugin): method get_all_names (line 272) | def get_all_names(): # type: ignore method deploy_cert (line 279) | def deploy_cert(domain, cert_path, key_path, chain_path, fullchain_path): method enhance (line 293) | def enhance(domain, enhancement, options=None): method supported_enhancements (line 309) | def supported_enhancements(): # type: ignore method save (line 318) | def save(title=None, temporary=False): method rollback_checkpoints (line 340) | def rollback_checkpoints(rollback=1): method recovery_routine (line 347) | def recovery_routine(): # type: ignore method config_test (line 358) | def config_test(): # type: ignore method restart (line 365) | def restart(): # type: ignore class IDisplay (line 373) | class IDisplay(zope.interface.Interface): method notification (line 377) | def notification(message, pause, wrap=True, force_interactive=False): method menu (line 389) | def menu(message, choices, ok_label=None, method input (line 419) | def input(message, default=None, cli_args=None, force_interactive=False): method yesno (line 440) | def yesno(message, yes_label="Yes", no_label="No", default=None, method checklist (line 463) | def checklist(message, tags, default=None, cli_args=None, force_intera... method directory_select (line 486) | def directory_select(self, message, default=None, class IReporter (line 509) | class IReporter(zope.interface.Interface): method add_message (line 519) | def add_message(self, msg, priority, on_crash=True): method print_messages (line 532) | def print_messages(self): class RenewableCert (line 537) | class RenewableCert(object): method cert_path (line 541) | def cert_path(self): method key_path (line 549) | def key_path(self): method chain_path (line 557) | def chain_path(self): method fullchain_path (line 565) | def fullchain_path(self): method lineagename (line 575) | def lineagename(self): method names (line 583) | def names(self): class GenericUpdater (line 603) | class GenericUpdater(object): method generic_updates (line 619) | def generic_updates(self, lineage, *args, **kwargs): class RenewDeployer (line 636) | class RenewDeployer(object): method renew_deploy (line 648) | def renew_deploy(self, lineage, *args, **kwargs): FILE: certbot/main.py function main (line 5) | def main(cli_args=None): FILE: certbot/ocsp.py class RevocationChecker (line 38) | class RevocationChecker(object): method __init__ (line 41) | def __init__(self, enforce_openssl_binary_usage=False): method ocsp_revoked (line 60) | def ocsp_revoked(self, cert): method ocsp_revoked_by_paths (line 73) | def ocsp_revoked_by_paths(self, cert_path, chain_path): method _check_ocsp_openssl_bin (line 102) | def _check_ocsp_openssl_bin(self, cert_path, chain_path, host, url): function _determine_ocsp_server (line 124) | def _determine_ocsp_server(cert_path): function _check_ocsp_cryptography (line 155) | def _check_ocsp_cryptography(cert_path, chain_path, url): function _check_ocsp_response (line 204) | def _check_ocsp_response(response_ocsp, request_ocsp, issuer_cert, cert_... function _check_ocsp_response_signature (line 238) | def _check_ocsp_response_signature(response_ocsp, issuer_cert, cert_path): function _translate_ocsp_query (line 287) | def _translate_ocsp_query(cert_path, ocsp_output, ocsp_errors): FILE: certbot/plugins/common.py function option_namespace (line 27) | def option_namespace(name): function dest_namespace (line 32) | def dest_namespace(name): class Plugin (line 45) | class Plugin(object): method __init__ (line 50) | def __init__(self, config, name): method add_parser_arguments (line 55) | def add_parser_arguments(cls, add): method inject_parser_options (line 69) | def inject_parser_options(cls, parser, name): method option_namespace (line 83) | def option_namespace(self): method option_name (line 87) | def option_name(self, name): method dest_namespace (line 92) | def dest_namespace(self): method dest (line 96) | def dest(self, var): method conf (line 102) | def conf(self, var): class Installer (line 107) | class Installer(Plugin): method __init__ (line 113) | def __init__(self, *args, **kwargs): method add_to_checkpoint (line 118) | def add_to_checkpoint(self, save_files, save_notes, temporary=False): method finalize_checkpoint (line 140) | def finalize_checkpoint(self, title): method recovery_routine (line 153) | def recovery_routine(self): method revert_temporary_config (line 166) | def revert_temporary_config(self): method rollback_checkpoints (line 177) | def rollback_checkpoints(self, rollback=1): method ssl_dhparams (line 192) | def ssl_dhparams(self): method updated_ssl_dhparams_digest (line 197) | def updated_ssl_dhparams_digest(self): method install_ssl_dhparams (line 201) | def install_ssl_dhparams(self): class Addr (line 210) | class Addr(object): method __init__ (line 217) | def __init__(self, tup, ipv6=False): method fromstring (line 222) | def fromstring(cls, str_addr): method __str__ (line 236) | def __str__(self): method normalized_tuple (line 241) | def normalized_tuple(self): method __eq__ (line 248) | def __eq__(self, other): method __hash__ (line 256) | def __hash__(self): method get_addr (line 259) | def get_addr(self): method get_port (line 263) | def get_port(self): method get_addr_obj (line 267) | def get_addr_obj(self, port): method _normalize_ipv6 (line 271) | def _normalize_ipv6(self, addr): method get_ipv6_exploded (line 277) | def get_ipv6_exploded(self): method _explode_ipv6 (line 283) | def _explode_ipv6(self, addr): class ChallengePerformer (line 308) | class ChallengePerformer(object): method __init__ (line 320) | def __init__(self, configurator): method add_chall (line 325) | def add_chall(self, achall, idx=None): method perform (line 337) | def perform(self): function install_version_controlled_file (line 348) | def install_version_controlled_file(dest_path, digest_path, src_path, al... function dir_setup (line 398) | def dir_setup(test_dir, pkg): # pragma: no cover class _TLSSNI01DeprecationModule (line 431) | class _TLSSNI01DeprecationModule(object): method __init__ (line 436) | def __init__(self, module): method __getattr__ (line 439) | def __getattr__(self, attr): method __setattr__ (line 445) | def __setattr__(self, attr, value): # pragma: no cover method __delattr__ (line 448) | def __delattr__(self, attr): # pragma: no cover method __dir__ (line 451) | def __dir__(self): # pragma: no cover FILE: certbot/plugins/dns_common.py class DNSAuthenticator (line 24) | class DNSAuthenticator(common.Plugin): method __init__ (line 27) | def __init__(self, config, name): method add_parser_arguments (line 33) | def add_parser_arguments(cls, add, default_propagation_seconds=10): #... method get_chall_pref (line 40) | def get_chall_pref(self, unused_domain): # pylint: disable=missing-fu... method prepare (line 43) | def prepare(self): # pylint: disable=missing-function-docstring method perform (line 46) | def perform(self, achalls): # pylint: disable=missing-function-docstring method cleanup (line 69) | def cleanup(self, achalls): # pylint: disable=missing-function-docstring method _setup_credentials (line 79) | def _setup_credentials(self): # pragma: no cover method _perform (line 86) | def _perform(self, domain, validation_name, validation): # pragma: no... method _cleanup (line 98) | def _cleanup(self, domain, validation_name, validation): # pragma: no... method _configure (line 110) | def _configure(self, key, label): method _configure_file (line 126) | def _configure_file(self, key, label, validator=None): method _configure_credentials (line 142) | def _configure_credentials(self, key, label, required_variables=None, ... method _prompt_for_data (line 180) | def _prompt_for_data(label): method _prompt_for_file (line 203) | def _prompt_for_file(label, validator=None): class CredentialsConfiguration (line 236) | class CredentialsConfiguration(object): method __init__ (line 239) | def __init__(self, filename, mapper=lambda x: x): method require (line 255) | def require(self, required_variables): method conf (line 280) | def conf(self, var): method _has (line 290) | def _has(self, var): method _get (line 293) | def _get(self, var): function validate_file (line 297) | def validate_file(filename): function validate_file_permissions (line 307) | def validate_file_permissions(filename): function base_domain_name_guesses (line 316) | def base_domain_name_guesses(domain): FILE: certbot/plugins/dns_common_lexicon.py class LexiconClient (line 26) | class LexiconClient(object): method __init__ (line 31) | def __init__(self): method add_txt_record (line 34) | def add_txt_record(self, domain, record_name, record_content): method del_txt_record (line 51) | def del_txt_record(self, domain, record_name, record_content): method _find_domain_id (line 72) | def _find_domain_id(self, domain): method _handle_http_error (line 108) | def _handle_http_error(self, e, domain_name): method _handle_general_error (line 112) | def _handle_general_error(self, e, domain_name): function build_lexicon_config (line 119) | def build_lexicon_config(lexicon_provider_name, lexicon_options, provide... FILE: certbot/plugins/dns_test_common.py class BaseAuthenticatorTest (line 18) | class BaseAuthenticatorTest(object): method test_more_info (line 30) | def test_more_info(self): method test_get_chall_pref (line 33) | def test_get_chall_pref(self): method test_parser_arguments (line 36) | def test_parser_arguments(self): function write (line 43) | def write(values, path): FILE: certbot/plugins/dns_test_common_lexicon.py class BaseLexiconAuthenticatorTest (line 18) | class BaseLexiconAuthenticatorTest(dns_test_common.BaseAuthenticatorTest): method test_perform (line 20) | def test_perform(self): method test_cleanup (line 26) | def test_cleanup(self): class BaseLexiconClientTest (line 34) | class BaseLexiconClientTest(object): method test_add_txt_record (line 44) | def test_add_txt_record(self): method test_add_txt_record_try_twice_to_find_domain (line 51) | def test_add_txt_record_try_twice_to_find_domain(self): method test_add_txt_record_fail_to_find_domain (line 60) | def test_add_txt_record_fail_to_find_domain(self): method test_add_txt_record_fail_to_authenticate (line 69) | def test_add_txt_record_fail_to_authenticate(self): method test_add_txt_record_fail_to_authenticate_with_unknown_error (line 76) | def test_add_txt_record_fail_to_authenticate_with_unknown_error(self): method test_add_txt_record_error_finding_domain (line 83) | def test_add_txt_record_error_finding_domain(self): method test_add_txt_record_error_adding_record (line 90) | def test_add_txt_record_error_adding_record(self): method test_del_txt_record (line 97) | def test_del_txt_record(self): method test_del_txt_record_fail_to_find_domain (line 104) | def test_del_txt_record_fail_to_find_domain(self): method test_del_txt_record_fail_to_authenticate (line 111) | def test_del_txt_record_fail_to_authenticate(self): method test_del_txt_record_fail_to_authenticate_with_unknown_error (line 116) | def test_del_txt_record_fail_to_authenticate_with_unknown_error(self): method test_del_txt_record_error_finding_domain (line 121) | def test_del_txt_record_error_finding_domain(self): method test_del_txt_record_error_deleting_record (line 126) | def test_del_txt_record_error_deleting_record(self): FILE: certbot/plugins/enhancements.py function enabled_enhancements (line 22) | def enabled_enhancements(config): function are_requested (line 33) | def are_requested(config): function are_supported (line 43) | def are_supported(config, installer): function enable (line 62) | def enable(lineage, domains, installer, config): function populate_cli (line 81) | def populate_cli(add): class AutoHSTSEnhancement (line 95) | class AutoHSTSEnhancement(object): method update_autohsts (line 122) | def update_autohsts(self, lineage, *args, **kwargs): method deploy_autohsts (line 136) | def deploy_autohsts(self, lineage, *args, **kwargs): method enable_autohsts (line 146) | def enable_autohsts(self, lineage, domains, *args, **kwargs): FILE: certbot/plugins/storage.py class PluginStorage (line 14) | class PluginStorage(object): method __init__ (line 17) | def __init__(self, config, classkey): method _initialize_storage (line 32) | def _initialize_storage(self): method _load (line 40) | def _load(self): method save (line 70) | def save(self): method put (line 100) | def put(self, key, value): method fetch (line 113) | def fetch(self, key): FILE: certbot/plugins/util.py function get_prefixes (line 11) | def get_prefixes(path): function path_surgery (line 32) | def path_surgery(cmd): FILE: certbot/reverter.py class Reverter (line 21) | class Reverter(object): method __init__ (line 63) | def __init__(self, config): method revert_temporary_config (line 69) | def revert_temporary_config(self): method rollback_checkpoints (line 89) | def rollback_checkpoints(self, rollback=1): method add_to_temp_checkpoint (line 131) | def add_to_temp_checkpoint(self, save_files, save_notes): method add_to_checkpoint (line 141) | def add_to_checkpoint(self, save_files, save_notes): method _add_to_checkpoint_dir (line 153) | def _add_to_checkpoint_dir(self, cp_dir, save_files, save_notes): method _read_and_append (line 198) | def _read_and_append(self, filepath): method _recover_checkpoint (line 214) | def _recover_checkpoint(self, cp_dir): method _run_undo_commands (line 253) | def _run_undo_commands(self, filepath): method _check_tempfile_saves (line 269) | def _check_tempfile_saves(self, save_files): method register_file_creation (line 299) | def register_file_creation(self, temporary, *files): method register_undo_command (line 338) | def register_undo_command(self, temporary, command): method _get_cp_dir (line 376) | def _get_cp_dir(self, temporary): method recovery_routine (line 388) | def recovery_routine(self): method _remove_contained_files (line 416) | def _remove_contained_files(self, file_list): method finalize_checkpoint (line 454) | def finalize_checkpoint(self, title): method _checkpoint_timestamp (line 495) | def _checkpoint_timestamp(self): method _timestamp_progress_dir (line 516) | def _timestamp_progress_dir(self): FILE: certbot/tests/acme_util.py function gen_combos (line 24) | def gen_combos(challbs): function chall_to_challb (line 30) | def chall_to_challb(chall, status): function gen_authzr (line 60) | def gen_authzr(authz_status, domain, challs, statuses, combos=True): FILE: certbot/tests/util.py function vector_path (line 30) | def vector_path(*names): function load_vector (line 36) | def load_vector(*names): function _guess_loader (line 50) | def _guess_loader(filename, loader_pem, loader_der): function load_cert (line 59) | def load_cert(*names): function load_csr (line 66) | def load_csr(*names): function load_comparable_csr (line 73) | def load_comparable_csr(*names): function load_rsa_private_key (line 78) | def load_rsa_private_key(*names): function load_pyopenssl_private_key (line 86) | def load_pyopenssl_private_key(*names): function make_lineage (line 93) | def make_lineage(config_dir, testfile): function patch_get_utility (line 137) | def patch_get_utility(target='zope.component.getUtility'): function patch_get_utility_with_stdout (line 152) | def patch_get_utility_with_stdout(target='zope.component.getUtility', class FreezableMock (line 176) | class FreezableMock(object): method __init__ (line 189) | def __init__(self, frozen=False, func=None, return_value=mock.sentinel... method freeze (line 197) | def freeze(self): method __call__ (line 201) | def __call__(self, *args, **kwargs): method __getattribute__ (line 206) | def __getattribute__(self, name): method __setattr__ (line 219) | def __setattr__(self, name, value): function _create_get_utility_mock (line 244) | def _create_get_utility_mock(): function _create_get_utility_mock_with_stdout (line 255) | def _create_get_utility_mock_with_stdout(stdout): function _assert_valid_call (line 286) | def _assert_valid_call(*args, **kwargs): class TempDirTestCase (line 297) | class TempDirTestCase(unittest.TestCase): method setUp (line 300) | def setUp(self): method tearDown (line 304) | def tearDown(self): class ConfigTestCase (line 319) | class ConfigTestCase(TempDirTestCase): method setUp (line 321) | def setUp(self): function _handle_lock (line 336) | def _handle_lock(event_in, event_out, path): function lock_and_call (line 355) | def lock_and_call(callback, path_to_lock): function skip_on_windows (line 381) | def skip_on_windows(reason): function temp_join (line 389) | def temp_join(path): FILE: certbot/util.py function run_script (line 64) | def run_script(params, log=logger.error): function exe_exists (line 94) | def exe_exists(exe): function lock_dir_until_exit (line 113) | def lock_dir_until_exit(dir_path): function _release_locks (line 128) | def _release_locks(): function set_up_core_dir (line 138) | def set_up_core_dir(directory, mode, strict): function make_or_verify_dir (line 157) | def make_or_verify_dir(directory, mode=0o755, strict=False): function safe_open (line 184) | def safe_open(path, mode="w", chmod=None): function _unique_file (line 201) | def _unique_file(path, filename_pat, count, chmod, mode): function unique_file (line 214) | def unique_file(path, chmod=0o777, mode="w"): function unique_lineage_name (line 230) | def unique_lineage_name(path, filename, chmod=0o644, mode="w"): function safely_remove (line 257) | def safely_remove(path): function get_filtered_names (line 266) | def get_filtered_names(all_names): function get_os_info (line 283) | def get_os_info(): function get_os_info_ua (line 293) | def get_os_info_ua(): function get_systemd_os_like (line 307) | def get_systemd_os_like(): function get_var_from_file (line 320) | def get_var_from_file(varname, filepath="/etc/os-release"): function _normalize_string (line 342) | def _normalize_string(orig): function get_python_os_info (line 349) | def get_python_os_info(pretty=False): function safe_email (line 405) | def safe_email(email): class _ShowWarning (line 413) | class _ShowWarning(argparse.Action): method __call__ (line 415) | def __call__(self, unused1, unused2, unused3, option_string=None): function add_deprecated_argument (line 419) | def add_deprecated_argument(add_argument, argument_name, nargs): function enforce_le_validity (line 445) | def enforce_le_validity(domain): function enforce_domain_sanity (line 477) | def enforce_domain_sanity(domain): function is_wildcard_domain (line 542) | def is_wildcard_domain(domain): function get_strict_version (line 560) | def get_strict_version(normalized): function is_staging (line 573) | def is_staging(srv): function atexit_register (line 584) | def atexit_register(func, *args, **kwargs): function _atexit_call (line 596) | def _atexit_call(func, *args, **kwargs): FILE: examples/plugins/certbot_example_plugins.py class Authenticator (line 14) | class Authenticator(common.Plugin): class Installer (line 25) | class Installer(common.Plugin): FILE: setup.py function read_file (line 20) | def read_file(filename, encoding='utf8'): class PyTest (line 102) | class PyTest(TestCommand): method initialize_options (line 105) | def initialize_options(self): method run_tests (line 109) | def run_tests(self): FILE: tests/account_test.py class AccountTest (line 20) | class AccountTest(unittest.TestCase): method setUp (line 23) | def setUp(self): method test_init (line 39) | def test_init(self): method test_id (line 44) | def test_id(self): method test_slug (line 48) | def test_slug(self): method test_repr (line 52) | def test_repr(self): class ReportNewAccountTest (line 56) | class ReportNewAccountTest(test_util.ConfigTestCase): method _call (line 59) | def _call(self): method test_no_reporter (line 64) | def test_no_reporter(self, mock_zope): method test_it (line 69) | def test_it(self, mock_zope): class AccountMemoryStorageTest (line 75) | class AccountMemoryStorageTest(unittest.TestCase): method setUp (line 78) | def setUp(self): method test_it (line 82) | def test_it(self): class AccountFileStorageTest (line 93) | class AccountFileStorageTest(test_util.ConfigTestCase): method setUp (line 96) | def setUp(self): method test_init_creates_dir (line 112) | def test_init_creates_dir(self): method test_save_and_restore (line 116) | def test_save_and_restore(self): method test_save_and_restore_old_version (line 130) | def test_save_and_restore_old_version(self): method test_save_regr (line 138) | def test_save_regr(self): method test_find_all (line 148) | def test_find_all(self): method test_find_all_none_empty_list (line 152) | def test_find_all_none_empty_list(self): method test_find_all_accounts_dir_absent (line 155) | def test_find_all_accounts_dir_absent(self): method test_find_all_load_skips (line 159) | def test_find_all_load_skips(self): method test_load_non_existent_raises_error (line 167) | def test_load_non_existent_raises_error(self): method _set_server (line 170) | def _set_server(self, server): method test_find_all_neither_exists (line 175) | def test_find_all_neither_exists(self): method test_find_all_find_before_save (line 181) | def test_find_all_find_before_save(self): method test_find_all_save_before_find (line 192) | def test_find_all_save_before_find(self): method test_find_all_server_downgrade (line 202) | def test_find_all_server_downgrade(self): method test_upgrade_version_staging (line 211) | def test_upgrade_version_staging(self): method test_upgrade_version_production (line 217) | def test_upgrade_version_production(self): method test_corrupted_account (line 224) | def test_corrupted_account(self, mock_rmdir): method test_upgrade_load (line 234) | def test_upgrade_load(self): method test_upgrade_load_single_account (line 242) | def test_upgrade_load_single_account(self): method test_load_ioerror (line 250) | def test_load_ioerror(self): method test_save_ioerrors (line 258) | def test_save_ioerrors(self): method test_delete (line 266) | def test_delete(self): method test_delete_no_account (line 271) | def test_delete_no_account(self): method _assert_symlinked_account_removed (line 274) | def _assert_symlinked_account_removed(self): method _test_delete_folders (line 283) | def _test_delete_folders(self, server_url): method test_delete_folders_up (line 300) | def test_delete_folders_up(self): method test_delete_folders_down (line 304) | def test_delete_folders_down(self): method _set_server_and_stop_symlink (line 308) | def _set_server_and_stop_symlink(self, server_path): method test_delete_shared_account_up (line 313) | def test_delete_shared_account_up(self): method test_delete_shared_account_down (line 317) | def test_delete_shared_account_down(self): FILE: tests/auth_handler_test.py class ChallengeFactoryTest (line 21) | class ChallengeFactoryTest(unittest.TestCase): method setUp (line 24) | def setUp(self): method test_all (line 34) | def test_all(self): method test_one_http (line 41) | def test_one_http(self): method test_unrecognized (line 47) | def test_unrecognized(self): class HandleAuthorizationsTest (line 57) | class HandleAuthorizationsTest(unittest.TestCase): method setUp (line 64) | def setUp(self): method tearDown (line 89) | def tearDown(self): method _test_name1_http_01_1_common (line 92) | def _test_name1_http_01_1_common(self, combos): method test_name1_http_01_1_acme_1 (line 117) | def test_name1_http_01_1_acme_1(self): method test_name1_http_01_1_acme_2 (line 120) | def test_name1_http_01_1_acme_2(self): method test_name1_http_01_1_dns_1_acme_1 (line 124) | def test_name1_http_01_1_dns_1_acme_1(self): method test_name1_http_01_1_dns_1_acme_2 (line 144) | def test_name1_http_01_1_dns_1_acme_2(self): method _test_name3_http_01_3_common (line 165) | def _test_name3_http_01_3_common(self, combos): method test_name3_http_01_3_common_acme_1 (line 186) | def test_name3_http_01_3_common_acme_1(self): method test_name3_http_01_3_common_acme_2 (line 189) | def test_name3_http_01_3_common_acme_2(self): method test_debug_challenges (line 193) | def test_debug_challenges(self): method test_perform_failure (line 206) | def test_perform_failure(self): method test_max_retries_exceeded (line 215) | def test_max_retries_exceeded(self): method test_no_domains (line 227) | def test_no_domains(self): method _test_preferred_challenge_choice_common (line 231) | def _test_preferred_challenge_choice_common(self, combos): method test_preferred_challenge_choice_common_acme_1 (line 247) | def test_preferred_challenge_choice_common_acme_1(self): method test_preferred_challenge_choice_common_acme_2 (line 250) | def test_preferred_challenge_choice_common_acme_2(self): method _test_preferred_challenges_not_supported_common (line 254) | def _test_preferred_challenges_not_supported_common(self, combos): method test_preferred_challenges_not_supported_acme_1 (line 261) | def test_preferred_challenges_not_supported_acme_1(self): method test_preferred_challenges_not_supported_acme_2 (line 264) | def test_preferred_challenges_not_supported_acme_2(self): method test_dns_only_challenge_not_supported (line 268) | def test_dns_only_challenge_not_supported(self): method test_perform_error (line 274) | def test_perform_error(self): method test_answer_error (line 285) | def test_answer_error(self): method test_incomplete_authzr_error (line 297) | def test_incomplete_authzr_error(self): method test_best_effort (line 310) | def test_best_effort(self): method test_validated_challenge_not_rerun (line 343) | def test_validated_challenge_not_rerun(self): method test_valid_authzrs_deactivated (line 364) | def test_valid_authzrs_deactivated(self): function _gen_mock_on_poll (line 398) | def _gen_mock_on_poll(status=messages.STATUS_VALID, retry=0, wait_value=1): class ChallbToAchallTest (line 414) | class ChallbToAchallTest(unittest.TestCase): method _call (line 417) | def _call(self, challb): method test_it (line 421) | def test_it(self): class GenChallengePathTest (line 430) | class GenChallengePathTest(unittest.TestCase): method setUp (line 436) | def setUp(self): method tearDown (line 439) | def tearDown(self): method _call (line 443) | def _call(cls, challbs, preferences, combinations): method test_common_case (line 447) | def test_common_case(self): method test_not_supported (line 460) | def test_not_supported(self): class ReportFailedAuthzrsTest (line 473) | class ReportFailedAuthzrsTest(unittest.TestCase): method setUp (line 477) | def setUp(self): method test_same_error_and_domain (line 505) | def test_same_error_and_domain(self, mock_zope): method test_different_errors_and_domains (line 514) | def test_different_errors_and_domains(self, mock_zope): function gen_auth_resp (line 521) | def gen_auth_resp(chall_list): function gen_dom_authzr (line 527) | def gen_dom_authzr(domain, challs, combos=True): FILE: tests/cert_manager_test.py class BaseCertManagerTest (line 22) | class BaseCertManagerTest(test_util.ConfigTestCase): method setUp (line 25) | def setUp(self): method _set_up_config (line 44) | def _set_up_config(self, domain, custom_archive): class UpdateLiveSymlinksTest (line 66) | class UpdateLiveSymlinksTest(BaseCertManagerTest): method test_update_live_symlinks (line 69) | def test_update_live_symlinks(self): class DeleteTest (line 105) | class DeleteTest(storage_test.BaseRenewableCertTest): method _call (line 109) | def _call(self): method test_delete_from_config (line 116) | def test_delete_from_config(self, mock_delete_files, mock_lineage_for_... method test_delete_interactive_single (line 127) | def test_delete_interactive_single(self, mock_delete_files, mock_linea... method test_delete_interactive_multiple (line 138) | def test_delete_interactive_multiple(self, mock_delete_files, mock_lin... class CertificatesTest (line 149) | class CertificatesTest(BaseCertManagerTest): method _certificates (line 152) | def _certificates(self, *args, **kwargs): method test_certificates_parse_fail (line 158) | def test_certificates_parse_fail(self, mock_utility, mock_logger): method test_certificates_quiet (line 165) | def test_certificates_quiet(self, mock_utility, mock_logger): method test_certificates_parse_success (line 176) | def test_certificates_parse_success(self, mock_report, mock_renewable_... method test_certificates_no_files (line 188) | def test_certificates_no_files(self, mock_utility, mock_logger): method test_report_human_readable (line 204) | def test_report_human_readable(self, mock_revoked): class SearchLineagesTest (line 272) | class SearchLineagesTest(BaseCertManagerTest): method test_cert_storage_error (line 278) | def test_cert_storage_error(self, mock_renewable_cert, mock_renewal_co... class LineageForCertnameTest (line 288) | class LineageForCertnameTest(BaseCertManagerTest): method test_found_match (line 294) | def test_found_match(self, mock_renewable_cert, mock_renewal_conf_file, method test_no_match (line 305) | def test_no_match(self, mock_renewal_conf_file, mock_make_or_verify_dir): method test_no_renewal_file (line 313) | def test_no_renewal_file(self, mock_renewal_conf_file, mock_make_or_ve... class DomainsForCertnameTest (line 320) | class DomainsForCertnameTest(BaseCertManagerTest): method test_found_match (line 326) | def test_found_match(self, mock_renewable_cert, mock_renewal_conf_file, method test_no_match (line 340) | def test_no_match(self, mock_renewal_conf_file, mock_make_or_verify_dir): class RenameLineageTest (line 347) | class RenameLineageTest(BaseCertManagerTest): method setUp (line 350) | def setUp(self): method _call (line 355) | def _call(self, *args, **kwargs): method test_no_certname (line 361) | def test_no_certname(self, mock_get_utility, mock_renewal_conf_files): method test_no_new_certname (line 378) | def test_no_new_certname(self, mock_get_utility): method test_no_existing_certname (line 391) | def test_no_existing_certname(self, mock_lineage_for_certname, unused_... method test_rename_cert (line 400) | def test_rename_cert(self, mock_check, unused_get_utility): method test_rename_cert_interactive_certname (line 410) | def test_rename_cert_interactive_certname(self, mock_check, mock_get_u... method test_rename_cert_bad_new_certname (line 423) | def test_rename_cert_bad_new_certname(self, mock_check, unused_get_uti... class DuplicativeCertsTest (line 434) | class DuplicativeCertsTest(storage_test.BaseRenewableCertTest): method setUp (line 437) | def setUp(self): method test_find_duplicative_names (line 443) | def test_find_duplicative_names(self, unused_makedir): class CertPathToLineageTest (line 472) | class CertPathToLineageTest(storage_test.BaseRenewableCertTest): method setUp (line 475) | def setUp(self): method _call (line 483) | def _call(self, cli_config): method _archive_files (line 487) | def _archive_files(self, cli_config, filetype): method test_basic_match (line 491) | def test_basic_match(self): method test_no_match_exists (line 494) | def test_no_match_exists(self): method test_options_fullchain (line 501) | def test_options_fullchain(self, mock_acceptable_matches): method test_options_cert_path (line 507) | def test_options_cert_path(self, mock_acceptable_matches): method test_options_archive_cert (line 515) | def test_options_archive_cert(self, mock_acceptable_matches): method test_options_archive_fullchain (line 523) | def test_options_archive_fullchain(self, mock_acceptable_matches): class MatchAndCheckOverlaps (line 531) | class MatchAndCheckOverlaps(storage_test.BaseRenewableCertTest): method setUp (line 535) | def setUp(self): method _call (line 543) | def _call(self, cli_config, acceptable_matches, match_func, rv_func): method test_basic_match (line 547) | def test_basic_match(self): method test_no_matches (line 553) | def test_no_matches(self, mock_search_lineages): method test_too_many_matches (line 558) | def test_too_many_matches(self, mock_search_lineages): class GetCertnameTest (line 563) | class GetCertnameTest(unittest.TestCase): method setUp (line 566) | def setUp(self): method test_get_certnames (line 575) | def test_get_certnames(self, mock_name, mock_files): method test_get_certnames_custom_prompt (line 589) | def test_get_certnames_custom_prompt(self, mock_name, mock_files): method test_get_certnames_user_abort (line 604) | def test_get_certnames_user_abort(self, mock_name, mock_files): method test_get_certnames_allow_multiple (line 616) | def test_get_certnames_allow_multiple(self, mock_name, mock_files): method test_get_certnames_allow_multiple_custom_prompt (line 631) | def test_get_certnames_allow_multiple_custom_prompt(self, mock_name, m... method test_get_certnames_allow_multiple_user_abort (line 648) | def test_get_certnames_allow_multiple_user_abort(self, mock_name, mock... FILE: tests/cli_test.py class TestReadFile (line 24) | class TestReadFile(TempDirTestCase): method test_read_file (line 26) | def test_read_file(self): class FlagDefaultTest (line 56) | class FlagDefaultTest(unittest.TestCase): method test_default_directories (line 59) | def test_default_directories(self): class ParseTest (line 70) | class ParseTest(unittest.TestCase): method setUp (line 74) | def setUp(self): method _unmocked_parse (line 78) | def _unmocked_parse(*args, **kwargs): method parse (line 83) | def parse(*args, **kwargs): method _help_output (line 88) | def _help_output(self, args): method test_cli_ini_domains (line 105) | def test_cli_ini_domains(self, mock_flag_default): method test_no_args (line 125) | def test_no_args(self): method test_install_abspath (line 130) | def test_install_abspath(self): method test_help (line 146) | def test_help(self): method test_help_no_dashes (line 205) | def test_help_no_dashes(self): method test_parse_domains (line 224) | def test_parse_domains(self): method test_preferred_challenges (line 250) | def test_preferred_challenges(self): method test_server_flag (line 263) | def test_server_flag(self): method test_must_staple_flag (line 267) | def test_must_staple_flag(self): method _check_server_conflict_message (line 273) | def _check_server_conflict_message(self, parser_args, conflicting_args): method test_staging_flag (line 284) | def test_staging_flag(self): method _assert_dry_run_flag_worked (line 293) | def _assert_dry_run_flag_worked(self, namespace, existing_account): method test_dry_run_flag (line 306) | def test_dry_run_flag(self): method test_option_was_set (line 345) | def test_option_was_set(self): method test_encode_revocation_reason (line 359) | def test_encode_revocation_reason(self): method test_force_interactive (line 367) | def test_force_interactive(self): method test_deploy_hook_conflict (line 373) | def test_deploy_hook_conflict(self): method test_deploy_hook_matches_renew_hook (line 378) | def test_deploy_hook_matches_renew_hook(self): method test_deploy_hook_sets_renew_hook (line 386) | def test_deploy_hook_sets_renew_hook(self): method test_renew_hook_conflict (line 393) | def test_renew_hook_conflict(self): method test_renew_hook_matches_deploy_hook (line 398) | def test_renew_hook_matches_deploy_hook(self): method test_renew_hook_does_not_set_renew_hook (line 406) | def test_renew_hook_does_not_set_renew_hook(self): method test_max_log_backups_error (line 413) | def test_max_log_backups_error(self): method test_max_log_backups_success (line 420) | def test_max_log_backups_success(self): method test_unchanging_defaults (line 425) | def test_unchanging_defaults(self): method test_no_directory_hooks_set (line 437) | def test_no_directory_hooks_set(self): method test_no_directory_hooks_unset (line 440) | def test_no_directory_hooks_unset(self): method test_delete_after_revoke (line 443) | def test_delete_after_revoke(self): method test_delete_after_revoke_default (line 447) | def test_delete_after_revoke_default(self): method test_no_delete_after_revoke (line 451) | def test_no_delete_after_revoke(self): method test_allow_subset_with_wildcard (line 455) | def test_allow_subset_with_wildcard(self): method test_route53_no_revert (line 459) | def test_route53_no_revert(self): method test_no_permissions_check_accepted (line 464) | def test_no_permissions_check_accepted(self): class DefaultTest (line 469) | class DefaultTest(unittest.TestCase): method setUp (line 473) | def setUp(self): method test_boolean (line 478) | def test_boolean(self): method test_equality (line 482) | def test_equality(self): method test_hash (line 485) | def test_hash(self): class SetByCliTest (line 489) | class SetByCliTest(unittest.TestCase): method setUp (line 493) | def setUp(self): method test_deploy_hook (line 496) | def test_deploy_hook(self): method test_webroot_map (line 500) | def test_webroot_map(self): method test_report_config_interaction_str (line 505) | def test_report_config_interaction_str(self): method test_report_config_interaction_iterable (line 512) | def test_report_config_interaction_iterable(self): method _test_report_config_interaction_common (line 519) | def _test_report_config_interaction_common(self): function _call_set_by_cli (line 543) | def _call_set_by_cli(var, args, verb): FILE: tests/client_test.py class DetermineUserAgentTest (line 22) | class DetermineUserAgentTest(test_util.ConfigTestCase): method _call (line 25) | def _call(self): method test_docs_value (line 30) | def test_docs_value(self): method test_real_values (line 34) | def test_real_values(self): method _test (line 37) | def _test(self, expect_doc_values): class RegisterTest (line 54) | class RegisterTest(test_util.ConfigTestCase): method setUp (line 57) | def setUp(self): method _call (line 64) | def _call(self): method _public_key_mock (line 70) | def _public_key_mock(): method _new_acct_dir_mock (line 76) | def _new_acct_dir_mock(): method _true_mock (line 80) | def _true_mock(): method _false_mock (line 84) | def _false_mock(): method test_no_tos (line 87) | def test_no_tos(self): method test_it (line 101) | def test_it(self): method test_email_retry (line 110) | def test_email_retry(self, _rep, mock_get_email): method test_email_invalid_noninteractive (line 124) | def test_email_invalid_noninteractive(self, _rep): method test_needs_email (line 135) | def test_needs_email(self): method test_without_email (line 140) | def test_without_email(self, mock_logger): method test_dry_run_no_staging_account (line 154) | def test_dry_run_no_staging_account(self, _rep, mock_get_email): method test_with_eab_arguments (line 167) | def test_with_eab_arguments(self): method test_without_eab_arguments (line 182) | def test_without_eab_arguments(self): method test_external_account_required_without_eab_arguments (line 194) | def test_external_account_required_without_eab_arguments(self): method test_unsupported_error (line 205) | def test_unsupported_error(self): class ClientTestCommon (line 220) | class ClientTestCommon(test_util.ConfigTestCase): method setUp (line 223) | def setUp(self): class ClientTest (line 239) | class ClientTest(ClientTestCommon): method setUp (line 242) | def setUp(self): method test_init_acme_verify_ssl (line 252) | def test_init_acme_verify_ssl(self): method _mock_obtain_certificate (line 256) | def _mock_obtain_certificate(self): method _check_obtain_certificate (line 264) | def _check_obtain_certificate(self, auth_count=1): method test_obtain_certificate_from_csr (line 278) | def test_obtain_certificate_from_csr(self, unused_mock_get_utility, method test_obtain_certificate (line 312) | def test_obtain_certificate(self, mock_crypto_util): method test_obtain_certificate_partial_success (line 329) | def test_obtain_certificate_partial_success(self, mock_remove, mock_cr... method test_obtain_certificate_dry_run (line 347) | def test_obtain_certificate_dry_run(self, mock_acme_crypto, mock_crypto): method test_obtain_certificate_dry_run_authz_deactivations_failed (line 367) | def test_obtain_certificate_dry_run_authz_deactivations_failed(self, m... method _set_mock_from_fullchain (line 405) | def _set_mock_from_fullchain(self, mock_from_fullchain): method _authzr_from_domains (line 412) | def _authzr_from_domains(self, domains): method _test_obtain_certificate_common (line 424) | def _test_obtain_certificate_common(self, key, csr, authzr_ret=None, a... method test_obtain_and_enroll_certificate (line 445) | def test_obtain_and_enroll_certificate(self, method test_save_certificate (line 465) | def test_save_certificate(self, mock_parser): method test_deploy_certificate_success (line 502) | def test_deploy_certificate_success(self): method test_deploy_certificate_failure (line 520) | def test_deploy_certificate_failure(self): method test_deploy_certificate_save_failure (line 529) | def test_deploy_certificate_save_failure(self): method test_deploy_certificate_restart_failure (line 539) | def test_deploy_certificate_restart_failure(self, mock_get_utility): method test_deploy_certificate_restart_failure2 (line 551) | def test_deploy_certificate_restart_failure2(self, mock_get_utility): class EnhanceConfigTest (line 564) | class EnhanceConfigTest(ClientTestCommon): method setUp (line 567) | def setUp(self): method test_no_installer (line 576) | def test_no_installer(self): method test_unsupported (line 581) | def test_unsupported(self, mock_enhancements): method test_already_exists_header (line 594) | def test_already_exists_header(self, mock_log): method test_already_exists_redirect (line 602) | def test_already_exists_redirect(self, mock_log): method test_config_set_no_warning_redirect (line 610) | def test_config_set_no_warning_redirect(self, mock_log): method test_warn_redirect (line 617) | def test_warn_redirect(self, mock_log, mock_ask): method test_no_ask_hsts (line 624) | def test_no_ask_hsts(self): method test_no_ask_redirect (line 630) | def test_no_ask_redirect(self): method test_no_ask_staple (line 636) | def test_no_ask_staple(self): method test_no_ask_uir (line 642) | def test_no_ask_uir(self): method test_enhance_failure (line 648) | def test_enhance_failure(self): method test_save_failure (line 654) | def test_save_failure(self): method test_restart_failure (line 661) | def test_restart_failure(self): method test_restart_failure2 (line 666) | def test_restart_failure2(self): method test_ask (line 674) | def test_ask(self, mock_ask): method _test_error_with_rollback (line 679) | def _test_error_with_rollback(self): method _test_error (line 683) | def _test_error(self): method _test_with_all_supported (line 690) | def _test_with_all_supported(self): method _test_with_already_existing (line 699) | def _test_with_already_existing(self): class RollbackTest (line 707) | class RollbackTest(unittest.TestCase): method setUp (line 710) | def setUp(self): method _call (line 714) | def _call(cls, checkpoints, side_effect): method test_no_problems (line 720) | def test_no_problems(self): method test_no_installer (line 725) | def test_no_installer(self): FILE: tests/compat/filesystem_test.py class WindowsChmodTests (line 33) | class WindowsChmodTests(TempDirTestCase): method setUp (line 35) | def setUp(self): method test_symlink_resolution (line 39) | def test_symlink_resolution(self): method test_world_permission (line 54) | def test_world_permission(self): method test_group_permissions_noop (line 69) | def test_group_permissions_noop(self): method test_admin_permissions (line 78) | def test_admin_permissions(self): method test_read_flag (line 96) | def test_read_flag(self): method test_execute_flag (line 99) | def test_execute_flag(self): method test_write_flag (line 102) | def test_write_flag(self): method test_full_flag (line 107) | def test_full_flag(self): method _test_flag (line 110) | def _test_flag(self, everyone_mode, windows_flag): method test_user_admin_dacl_consistency (line 127) | def test_user_admin_dacl_consistency(self): class ComputePrivateKeyModeTest (line 152) | class ComputePrivateKeyModeTest(TempDirTestCase): method setUp (line 153) | def setUp(self): method test_compute_private_key_mode (line 157) | def test_compute_private_key_mode(self): class WindowsOpenTest (line 171) | class WindowsOpenTest(TempDirTestCase): method test_new_file_correct_permissions (line 172) | def test_new_file_correct_permissions(self): method test_existing_file_correct_permissions (line 184) | def test_existing_file_correct_permissions(self): method test_create_file_on_open (line 197) | def test_create_file_on_open(self): method _test_one_creation (line 227) | def _test_one_creation(self, num, file_exist, flags): class WindowsMkdirTests (line 242) | class WindowsMkdirTests(test_util.TempDirTestCase): method test_mkdir_correct_permissions (line 244) | def test_mkdir_correct_permissions(self): method test_makedirs_correct_permissions (line 255) | def test_makedirs_correct_permissions(self): method test_makedirs_switch_os_mkdir (line 267) | def test_makedirs_switch_os_mkdir(self): class OwnershipTest (line 282) | class OwnershipTest(test_util.TempDirTestCase): method setUp (line 284) | def setUp(self): method test_copy_ownership_windows (line 289) | def test_copy_ownership_windows(self): method test_copy_ownership_linux (line 315) | def test_copy_ownership_linux(self): method test_has_same_ownership (line 327) | def test_has_same_ownership(self): class CheckPermissionsTest (line 337) | class CheckPermissionsTest(test_util.TempDirTestCase): method setUp (line 339) | def setUp(self): method test_check_mode (line 343) | def test_check_mode(self): method test_check_owner_windows (line 350) | def test_check_owner_windows(self): method test_check_owner_linux (line 362) | def test_check_owner_linux(self): method test_check_permissions (line 374) | def test_check_permissions(self): method test_check_min_permissions (line 385) | def test_check_min_permissions(self): method test_is_world_reachable (line 395) | def test_is_world_reachable(self): class OsReplaceTest (line 403) | class OsReplaceTest(test_util.TempDirTestCase): method test_os_replace_to_existing_file (line 405) | def test_os_replace_to_existing_file(self): class RealpathTest (line 419) | class RealpathTest(test_util.TempDirTestCase): method setUp (line 421) | def setUp(self): method test_symlink_resolution (line 425) | def test_symlink_resolution(self): method test_symlink_loop_mitigation (line 448) | def test_symlink_loop_mitigation(self): class IsExecutableTest (line 461) | class IsExecutableTest(test_util.TempDirTestCase): method test_not_executable (line 463) | def test_not_executable(self): method test_full_path (line 490) | def test_full_path(self, mock_access, mock_isfile): method test_rel_path (line 498) | def test_rel_path(self, mock_access, mock_isfile): method test_not_found (line 506) | def test_not_found(self, mock_access, mock_isfile): function _fix_windows_runtime (line 514) | def _fix_windows_runtime(): function _get_security_dacl (line 525) | def _get_security_dacl(target): function _get_security_owner (line 529) | def _get_security_owner(target): function _set_owner (line 533) | def _set_owner(target, security_owner, user): function _create_probe (line 539) | def _create_probe(tempdir): FILE: tests/compat/os_test.py class OsTest (line 7) | class OsTest(unittest.TestCase): method test_forbidden_methods (line 9) | def test_forbidden_methods(self): FILE: tests/configuration_test.py class NamespaceConfigTest (line 13) | class NamespaceConfigTest(test_util.ConfigTestCase): method setUp (line 16) | def setUp(self): method test_init_same_ports (line 23) | def test_init_same_ports(self): method test_proxy_getattr (line 28) | def test_proxy_getattr(self): method test_server_path (line 32) | def test_server_path(self): method test_dynamic_dirs (line 42) | def test_dynamic_dirs(self, mock_constants): method test_absolute_paths (line 72) | def test_absolute_paths(self): method test_renewal_dynamic_dirs (line 107) | def test_renewal_dynamic_dirs(self, mock_constants): method test_renewal_absolute_paths (line 120) | def test_renewal_absolute_paths(self): method test_get_and_set_attr (line 140) | def test_get_and_set_attr(self): method test_hook_directories (line 146) | def test_hook_directories(self): FILE: tests/crypto_util_test.py class InitSaveKeyTest (line 28) | class InitSaveKeyTest(test_util.TempDirTestCase): method setUp (line 30) | def setUp(self): method tearDown (line 40) | def tearDown(self): method _call (line 46) | def _call(cls, key_size, key_dir): method test_success (line 51) | def test_success(self, mock_make): method test_key_failure (line 59) | def test_key_failure(self, mock_make): class InitSaveCSRTest (line 64) | class InitSaveCSRTest(test_util.TempDirTestCase): method setUp (line 67) | def setUp(self): method test_it (line 75) | def test_it(self, unused_mock_verify, mock_csr): class ValidCSRTest (line 87) | class ValidCSRTest(unittest.TestCase): method _call (line 91) | def _call(cls, csr): method test_valid_pem_true (line 95) | def test_valid_pem_true(self): method test_valid_pem_san_true (line 98) | def test_valid_pem_san_true(self): method test_valid_der_false (line 101) | def test_valid_der_false(self): method test_empty_false (line 104) | def test_empty_false(self): method test_random_false (line 107) | def test_random_false(self): class CSRMatchesPubkeyTest (line 111) | class CSRMatchesPubkeyTest(unittest.TestCase): method _call (line 115) | def _call(cls, *args, **kwargs): method test_valid_true (line 119) | def test_valid_true(self): method test_invalid_false (line 123) | def test_invalid_false(self): class ImportCSRFileTest (line 128) | class ImportCSRFileTest(unittest.TestCase): method _call (line 132) | def _call(cls, *args, **kwargs): method test_der_csr (line 136) | def test_der_csr(self): method test_pem_csr (line 149) | def test_pem_csr(self): method test_bad_csr (line 161) | def test_bad_csr(self): class MakeKeyTest (line 167) | class MakeKeyTest(unittest.TestCase): method test_it (line 170) | def test_it(self): # pylint: disable=no-self-use class VerifyCertSetup (line 177) | class VerifyCertSetup(unittest.TestCase): method setUp (line 180) | def setUp(self): class VerifyRenewableCertTest (line 195) | class VerifyRenewableCertTest(VerifyCertSetup): method _call (line 198) | def _call(self, renewable_cert): method test_verify_renewable_cert (line 202) | def test_verify_renewable_cert(self): method test_verify_renewable_cert_failure (line 206) | def test_verify_renewable_cert_failure(self, unused_verify_renewable_c... class VerifyRenewableCertSigTest (line 210) | class VerifyRenewableCertSigTest(VerifyCertSetup): method _call (line 213) | def _call(self, renewable_cert): method test_cert_sig_match (line 217) | def test_cert_sig_match(self): method test_cert_sig_match_ec (line 220) | def test_cert_sig_match_ec(self): method test_cert_sig_mismatch (line 227) | def test_cert_sig_mismatch(self): class VerifyFullchainTest (line 232) | class VerifyFullchainTest(VerifyCertSetup): method _call (line 235) | def _call(self, renewable_cert): method test_fullchain_matches (line 239) | def test_fullchain_matches(self): method test_fullchain_mismatch (line 242) | def test_fullchain_mismatch(self): method test_fullchain_ioerror (line 245) | def test_fullchain_ioerror(self): class VerifyCertMatchesPrivKeyTest (line 250) | class VerifyCertMatchesPrivKeyTest(VerifyCertSetup): method _call (line 253) | def _call(self, renewable_cert): method test_cert_priv_key_match (line 257) | def test_cert_priv_key_match(self): method test_cert_priv_key_mismatch (line 262) | def test_cert_priv_key_mismatch(self): class ValidPrivkeyTest (line 269) | class ValidPrivkeyTest(unittest.TestCase): method _call (line 273) | def _call(cls, privkey): method test_valid_true (line 277) | def test_valid_true(self): method test_empty_false (line 280) | def test_empty_false(self): method test_random_false (line 283) | def test_random_false(self): class GetSANsFromCertTest (line 287) | class GetSANsFromCertTest(unittest.TestCase): method _call (line 291) | def _call(cls, *args, **kwargs): method test_single (line 295) | def test_single(self): method test_san (line 298) | def test_san(self): class GetNamesFromCertTest (line 304) | class GetNamesFromCertTest(unittest.TestCase): method _call (line 308) | def _call(cls, *args, **kwargs): method test_single (line 312) | def test_single(self): method test_san (line 317) | def test_san(self): method test_common_name_sans_order (line 322) | def test_common_name_sans_order(self): method test_parse_non_cert (line 329) | def test_parse_non_cert(self): class CertLoaderTest (line 333) | class CertLoaderTest(unittest.TestCase): method test_load_valid_cert (line 336) | def test_load_valid_cert(self): method test_load_invalid_cert (line 343) | def test_load_invalid_cert(self): class NotBeforeTest (line 350) | class NotBeforeTest(unittest.TestCase): method test_notBefore (line 353) | def test_notBefore(self): class NotAfterTest (line 359) | class NotAfterTest(unittest.TestCase): method test_notAfter (line 362) | def test_notAfter(self): class Sha256sumTest (line 368) | class Sha256sumTest(unittest.TestCase): method test_sha256sum (line 370) | def test_sha256sum(self): class CertAndChainFromFullchainTest (line 376) | class CertAndChainFromFullchainTest(unittest.TestCase): method test_cert_and_chain_from_fullchain (line 379) | def test_cert_and_chain_from_fullchain(self): FILE: tests/display/completer_test.py class CompleterTest (line 19) | class CompleterTest(test_util.TempDirTestCase): method setUp (line 22) | def setUp(self): method test_complete (line 41) | def test_complete(self): method test_import_error (line 57) | def test_import_error(self): method test_context_manager_with_unmocked_readline (line 65) | def test_context_manager_with_unmocked_readline(self): method test_context_manager_libedit (line 79) | def test_context_manager_libedit(self, mock_readline): method test_context_manager_readline (line 84) | def test_context_manager_readline(self, mock_readline): method _test_context_manager_with_mock_readline (line 88) | def _test_context_manager_with_mock_readline(self, mock_readline): function enable_tab_completion (line 99) | def enable_tab_completion(unused_command): FILE: tests/display/enhancements_test.py class AskTest (line 11) | class AskTest(unittest.TestCase): method setUp (line 13) | def setUp(self): method tearDown (line 16) | def tearDown(self): method _call (line 20) | def _call(cls, enhancement): method test_redirect (line 25) | def test_redirect(self, mock_util): method test_key_error (line 29) | def test_key_error(self): class RedirectTest (line 33) | class RedirectTest(unittest.TestCase): method _call (line 36) | def _call(cls): method test_secure (line 41) | def test_secure(self, mock_util): method test_cancel (line 46) | def test_cancel(self, mock_util): method test_easy (line 51) | def test_easy(self, mock_util): FILE: tests/display/ops_test.py class GetEmailTest (line 22) | class GetEmailTest(unittest.TestCase): method _call (line 26) | def _call(cls, **kwargs): method test_cancel_none (line 31) | def test_cancel_none(self, mock_get_utility): method test_ok_safe (line 38) | def test_ok_safe(self, mock_get_utility): method test_ok_not_safe (line 46) | def test_ok_not_safe(self, mock_get_utility): method test_invalid_flag (line 54) | def test_invalid_flag(self, mock_get_utility): method test_optional_flag (line 66) | def test_optional_flag(self, mock_get_utility): method test_optional_invalid_unsafe (line 77) | def test_optional_invalid_unsafe(self, mock_get_utility): class ChooseAccountTest (line 87) | class ChooseAccountTest(test_util.TempDirTestCase): method setUp (line 89) | def setUp(self): method _call (line 112) | def _call(cls, accounts): method test_one (line 116) | def test_one(self, mock_util): method test_two (line 121) | def test_two(self, mock_util): method test_cancel (line 126) | def test_cancel(self, mock_util): class GenSSLLabURLs (line 131) | class GenSSLLabURLs(unittest.TestCase): method setUp (line 133) | def setUp(self): method _call (line 138) | def _call(cls, domains): method test_zero (line 142) | def test_zero(self): method test_two (line 145) | def test_two(self): class GenHttpsNamesTest (line 151) | class GenHttpsNamesTest(unittest.TestCase): method setUp (line 153) | def setUp(self): method _call (line 158) | def _call(cls, domains): method test_zero (line 162) | def test_zero(self): method test_one (line 165) | def test_one(self): method test_two (line 173) | def test_two(self): method test_three (line 183) | def test_three(self): method test_four (line 191) | def test_four(self): class ChooseNamesTest (line 199) | class ChooseNamesTest(unittest.TestCase): method setUp (line 201) | def setUp(self): method _call (line 207) | def _call(cls, installer, question=None): method test_no_installer (line 212) | def test_no_installer(self, mock_manual): method test_no_installer_cancel (line 217) | def test_no_installer_cancel(self, mock_util): method test_no_names_choose (line 222) | def test_no_names_choose(self, mock_util): method test_sort_names_trivial (line 233) | def test_sort_names_trivial(self): method test_sort_names_many (line 253) | def test_sort_names_many(self): method test_filter_names_valid_return (line 273) | def test_filter_names_valid_return(self, mock_util): method test_filter_namees_override_question (line 282) | def test_filter_namees_override_question(self, mock_util): method test_filter_names_nothing_selected (line 291) | def test_filter_names_nothing_selected(self, mock_util): method test_filter_names_cancel (line 298) | def test_filter_names_cancel(self, mock_util): method test_get_valid_domains (line 305) | def test_get_valid_domains(self): method test_choose_manually (line 317) | def test_choose_manually(self, mock_util): method test_choose_manually_retry (line 344) | def test_choose_manually_retry(self, mock_util): class SuccessInstallationTest (line 355) | class SuccessInstallationTest(unittest.TestCase): method _call (line 358) | def _call(cls, names): method test_success_installation (line 363) | def test_success_installation(self, mock_util): class SuccessRenewalTest (line 376) | class SuccessRenewalTest(unittest.TestCase): method _call (line 379) | def _call(cls, names): method test_success_renewal (line 384) | def test_success_renewal(self, mock_util): class SuccessRevocationTest (line 396) | class SuccessRevocationTest(unittest.TestCase): method _call (line 399) | def _call(cls, path): method test_success_revocation (line 404) | def test_success_revocation(self, mock_util): class ValidatorTests (line 416) | class ValidatorTests(unittest.TestCase): method __validator (line 425) | def __validator(m): method test_input_blank_with_validator (line 430) | def test_input_blank_with_validator(self, mock_util): method test_input_validation_with_default (line 441) | def test_input_validation_with_default(self, mock_util): method test_input_validation_with_bad_default (line 448) | def test_input_validation_with_bad_default(self, mock_util): method test_input_cancel_with_validator (line 456) | def test_input_cancel_with_validator(self, mock_util): method test_directory_select_validation (line 463) | def test_directory_select_validation(self, mock_util): method test_directory_select_validation_with_default (line 472) | def test_directory_select_validation_with_default(self, mock_util): method test_directory_select_validation_with_bad_default (line 479) | def test_directory_select_validation_with_bad_default(self, mock_util): class ChooseValuesTest (line 487) | class ChooseValuesTest(unittest.TestCase): method _call (line 490) | def _call(cls, values, question): method test_choose_names_success (line 495) | def test_choose_names_success(self, mock_util): method test_choose_names_success_question (line 504) | def test_choose_names_success_question(self, mock_util): method test_choose_names_user_cancel (line 514) | def test_choose_names_user_cancel(self, mock_util): FILE: tests/display/util_test.py class InputWithTimeoutTest (line 19) | class InputWithTimeoutTest(unittest.TestCase): method _call (line 22) | def _call(cls, *args, **kwargs): method test_eof (line 26) | def test_eof(self): method test_input (line 31) | def test_input(self, prompt=None): method test_input_with_prompt (line 39) | def test_input_with_prompt(self, mock_stdout): method test_timeout (line 45) | def test_timeout(self): class FileOutputDisplayTest (line 54) | class FileOutputDisplayTest(unittest.TestCase): method setUp (line 61) | def setUp(self): method test_notification_no_pause (line 66) | def test_notification_no_pause(self): method test_notification_pause (line 72) | def test_notification_pause(self): method test_notification_noninteractive (line 79) | def test_notification_noninteractive(self): method test_notification_noninteractive2 (line 84) | def test_notification_noninteractive2(self): method test_menu (line 99) | def test_menu(self, mock_ans): method test_menu_noninteractive (line 104) | def test_menu_noninteractive(self): method test_input_cancel (line 110) | def test_input_cancel(self): method test_input_normal (line 117) | def test_input_normal(self): method test_input_noninteractive (line 125) | def test_input_noninteractive(self): method test_input_assertion_fail (line 133) | def test_input_assertion_fail(self): method test_input_assertion_fail2 (line 139) | def test_input_assertion_fail2(self): method test_yesno (line 144) | def test_yesno(self): method test_yesno_noninteractive (line 166) | def test_yesno_noninteractive(self): method test_checklist_valid (line 171) | def test_checklist_valid(self, mock_input): method test_checklist_empty (line 179) | def test_checklist_empty(self, mock_input): method test_checklist_miss_valid (line 186) | def test_checklist_miss_valid(self, mock_input): method test_checklist_miss_quit (line 193) | def test_checklist_miss_quit(self, mock_input): method test_checklist_noninteractive (line 199) | def test_checklist_noninteractive(self): method test_scrub_checklist_input_valid (line 207) | def test_scrub_checklist_input_valid(self): method test_directory_select (line 225) | def test_directory_select(self, mock_input): method test_directory_select_noninteractive (line 233) | def test_directory_select_noninteractive(self): method _force_noninteractive (line 241) | def _force_noninteractive(self, func, *args, **kwargs): method test_scrub_checklist_input_invalid (line 256) | def test_scrub_checklist_input_invalid(self): method test_print_menu (line 269) | def test_print_menu(self): method test_wrap_lines (line 275) | def test_wrap_lines(self): method test_get_valid_int_ans_valid (line 285) | def test_get_valid_int_ans_valid(self): method test_get_valid_int_ans_invalid (line 297) | def test_get_valid_int_ans_invalid(self): method test_methods_take_force_interactive (line 311) | def test_methods_take_force_interactive(self): class NoninteractiveDisplayTest (line 323) | class NoninteractiveDisplayTest(unittest.TestCase): method setUp (line 325) | def setUp(self): method test_notification_no_pause (line 330) | def test_notification_no_pause(self): method test_input (line 336) | def test_input(self): method test_menu (line 342) | def test_menu(self): method test_yesno (line 347) | def test_yesno(self): method test_checklist (line 353) | def test_checklist(self): method test_directory_select (line 359) | def test_directory_select(self): method test_methods_take_kwargs (line 368) | def test_methods_take_kwargs(self): class SeparateListInputTest (line 386) | class SeparateListInputTest(unittest.TestCase): method setUp (line 388) | def setUp(self): method _call (line 392) | def _call(cls, input_): method test_commas (line 396) | def test_commas(self): method test_spaces (line 399) | def test_spaces(self): method test_both (line 402) | def test_both(self): method test_mess (line 405) | def test_mess(self): class PlaceParensTest (line 416) | class PlaceParensTest(unittest.TestCase): method _call (line 418) | def _call(cls, label): # pylint: disable=protected-access method test_single_letter (line 422) | def test_single_letter(self): method test_multiple (line 425) | def test_multiple(self): FILE: tests/eff_test.py class HandleSubscriptionTest (line 11) | class HandleSubscriptionTest(test_util.ConfigTestCase): method setUp (line 13) | def setUp(self): method _call (line 19) | def _call(self): method test_failure (line 25) | def test_failure(self, mock_subscribe, mock_get_utility): method test_no_subscribe_with_no_prompt (line 36) | def test_no_subscribe_with_no_prompt(self, mock_subscribe): method test_subscribe_with_no_prompt (line 45) | def test_subscribe_with_no_prompt(self, mock_subscribe, mock_get_utili... method _assert_no_get_utility_calls (line 51) | def _assert_no_get_utility_calls(self, mock_get_utility): method test_subscribe_with_prompt (line 57) | def test_subscribe_with_prompt(self, mock_subscribe, mock_get_utility): method _assert_subscribed (line 64) | def _assert_subscribed(self, mock_subscribe): method test_no_subscribe_with_prompt (line 70) | def test_no_subscribe_with_prompt(self, mock_subscribe, mock_get_utili... method _assert_correct_yesno_call (line 77) | def _assert_correct_yesno_call(self, mock_get_utility): class SubscribeTest (line 86) | class SubscribeTest(unittest.TestCase): method setUp (line 88) | def setUp(self): method _call (line 95) | def _call(self, mock_post): method _check_post_call (line 102) | def _check_post_call(self, mock_post): method test_bad_status (line 112) | def test_bad_status(self, mock_get_utility): method test_not_ok (line 120) | def test_not_ok(self, mock_get_utility): method test_response_not_json (line 129) | def test_response_not_json(self, mock_get_utility): method test_response_json_missing_status_element (line 137) | def test_response_json_missing_status_element(self, mock_get_utility): method _get_reported_message (line 144) | def _get_reported_message(self, mock_get_utility): method test_subscribe (line 149) | def test_subscribe(self, mock_get_utility): FILE: tests/error_handler_test.py function get_signals (line 15) | def get_signals(signums): function set_signals (line 20) | def set_signals(sig_handler_dict): function signal_receiver (line 27) | def signal_receiver(signums): function send_signal (line 36) | def send_signal(signum): class ErrorHandlerTest (line 41) | class ErrorHandlerTest(unittest.TestCase): method setUp (line 44) | def setUp(self): method test_context_manager (line 57) | def test_context_manager(self): method test_context_manager_with_signal (line 69) | def test_context_manager_with_signal(self): method test_bad_recovery (line 89) | def test_bad_recovery(self): method test_bad_recovery_with_signal (line 101) | def test_bad_recovery_with_signal(self): method test_sysexit_ignored (line 116) | def test_sysexit_ignored(self): method test_regular_exit (line 124) | def test_regular_exit(self): class ExitHandlerTest (line 133) | class ExitHandlerTest(ErrorHandlerTest): method setUp (line 136) | def setUp(self): method test_regular_exit (line 143) | def test_regular_exit(self): FILE: tests/errors_test.py class FailedChallengesTest (line 11) | class FailedChallengesTest(unittest.TestCase): method setUp (line 14) | def setUp(self): method test_str (line 21) | def test_str(self): method test_unicode (line 26) | def test_unicode(self): class StandaloneBindErrorTest (line 39) | class StandaloneBindErrorTest(unittest.TestCase): method setUp (line 42) | def setUp(self): method test_instance_args (line 46) | def test_instance_args(self): method test_str (line 50) | def test_str(self): FILE: tests/helpful_test.py class TestScanningFlags (line 10) | class TestScanningFlags(unittest.TestCase): method test_prescan_no_help_flag (line 12) | def test_prescan_no_help_flag(self): method test_prescan_unvalid_topic (line 21) | def test_prescan_unvalid_topic(self): method test_prescan_valid_topic (line 30) | def test_prescan_valid_topic(self): class TestDetermineVerbs (line 39) | class TestDetermineVerbs(unittest.TestCase): method test_determine_verb_wrong_verb (line 41) | def test_determine_verb_wrong_verb(self): method test_determine_verb_help (line 46) | def test_determine_verb_help(self): method test_determine_verb (line 56) | def test_determine_verb(self): class TestAdd (line 70) | class TestAdd(unittest.TestCase): method test_add_trivial_argument (line 72) | def test_add_trivial_argument(self): method test_add_expected_argument (line 80) | def test_add_expected_argument(self): class TestAddGroup (line 92) | class TestAddGroup(unittest.TestCase): method test_add_group_no_input (line 94) | def test_add_group_no_input(self): method test_add_group_topic_not_visible (line 98) | def test_add_group_topic_not_visible(self): method test_add_group_topic_requested_help (line 106) | def test_add_group_topic_requested_help(self): class TestParseArgsErrors (line 116) | class TestParseArgsErrors(unittest.TestCase): method test_parse_args_renew_force_interactive (line 119) | def test_parse_args_renew_force_interactive(self): method test_parse_args_non_interactive_and_force_interactive (line 128) | def test_parse_args_non_interactive_and_force_interactive(self): method test_parse_args_subset_names_wildcard_domain (line 141) | def test_parse_args_subset_names_wildcard_domain(self): method test_parse_args_hosts_and_auto_hosts (line 167) | def test_parse_args_hosts_and_auto_hosts(self): FILE: tests/hook_test.py class ValidateHooksTest (line 14) | class ValidateHooksTest(unittest.TestCase): method _call (line 18) | def _call(cls, *args, **kwargs): method test_it (line 23) | def test_it(self, mock_validate_hook): class ValidateHookTest (line 33) | class ValidateHookTest(test_util.TempDirTestCase): method _call (line 37) | def _call(cls, *args, **kwargs): method test_hook_not_executable (line 41) | def test_hook_not_executable(self): method test_not_found (line 51) | def test_not_found(self, mock_exe_exists): method test_unset (line 58) | def test_unset(self, mock_prog): class HookTest (line 63) | class HookTest(test_util.ConfigTestCase): method _call (line 67) | def _call(cls, *args, **kwargs): # pragma: no cover method _call_with_mock_execute (line 72) | def _call_with_mock_execute(cls, *args, **kwargs): class PreHookTest (line 85) | class PreHookTest(HookTest): method _call (line 89) | def _call(cls, *args, **kwargs): method setUp (line 93) | def setUp(self): method tearDown (line 104) | def tearDown(self): method _reset_pre_hook_already (line 109) | def _reset_pre_hook_already(self): method test_certonly (line 113) | def test_certonly(self): method test_run (line 117) | def test_run(self): method _test_nonrenew_common (line 121) | def _test_nonrenew_common(self): method test_no_hooks (line 126) | def test_no_hooks(self): method test_renew_disabled_dir_hooks (line 136) | def test_renew_disabled_dir_hooks(self): method test_renew_no_overlap (line 142) | def test_renew_no_overlap(self): method test_renew_with_overlap (line 149) | def test_renew_with_overlap(self): method _test_no_executions_common (line 156) | def _test_no_executions_common(self): class PostHookTest (line 163) | class PostHookTest(HookTest): method _call (line 167) | def _call(cls, *args, **kwargs): method setUp (line 171) | def setUp(self): method tearDown (line 182) | def tearDown(self): method _reset_post_hook_eventually (line 187) | def _reset_post_hook_eventually(self): method test_certonly_and_run_with_hook (line 191) | def test_certonly_and_run_with_hook(self): method test_cert_only_and_run_without_hook (line 198) | def test_cert_only_and_run_without_hook(self): method test_renew_disabled_dir_hooks (line 205) | def test_renew_disabled_dir_hooks(self): method test_renew_no_config_hook (line 209) | def test_renew_no_config_hook(self): method test_renew_no_dir_hook (line 213) | def test_renew_no_dir_hook(self): method test_renew_no_hooks (line 217) | def test_renew_no_hooks(self): method test_renew_no_overlap (line 222) | def test_renew_no_overlap(self): method test_renew_with_overlap (line 230) | def test_renew_with_overlap(self): method _test_renew_common (line 234) | def _test_renew_common(self, expected): method _get_eventually (line 241) | def _get_eventually(self): class RunSavedPostHooksTest (line 246) | class RunSavedPostHooksTest(HookTest): method _call (line 250) | def _call(cls, *args, **kwargs): method _call_with_mock_execute_and_eventually (line 254) | def _call_with_mock_execute_and_eventually(self, *args, **kwargs): method setUp (line 266) | def setUp(self): method test_empty (line 270) | def test_empty(self): method test_multiple (line 273) | def test_multiple(self): method test_single (line 281) | def test_single(self): class RenewalHookTest (line 287) | class RenewalHookTest(HookTest): method _call_with_mock_execute (line 292) | def _call_with_mock_execute(self, *args, **kwargs): method setUp (line 319) | def setUp(self): method tearDown (line 325) | def tearDown(self): class DeployHookTest (line 331) | class DeployHookTest(RenewalHookTest): method _call (line 335) | def _call(cls, *args, **kwargs): method test_dry_run (line 340) | def test_dry_run(self, mock_logger): method test_no_hook (line 349) | def test_no_hook(self, mock_logger): method test_success (line 356) | def test_success(self): class RenewHookTest (line 365) | class RenewHookTest(RenewalHookTest): method _call (line 369) | def _call(cls, *args, **kwargs): method setUp (line 373) | def setUp(self): method test_disabled_dir_hooks (line 382) | def test_disabled_dir_hooks(self): method test_dry_run (line 389) | def test_dry_run(self, mock_logger): method test_no_hooks (line 396) | def test_no_hooks(self): method test_overlap (line 406) | def test_overlap(self): method test_no_overlap (line 412) | def test_no_overlap(self): class ExecuteTest (line 419) | class ExecuteTest(unittest.TestCase): method _call (line 423) | def _call(cls, *args, **kwargs): method test_it (line 427) | def test_it(self): method _test_common (line 433) | def _test_common(self, returncode, stdout, stderr): class ListHooksTest (line 455) | class ListHooksTest(test_util.TempDirTestCase): method _call (line 459) | def _call(cls, *args, **kwargs): method test_empty (line 463) | def test_empty(self): method test_multiple (line 466) | def test_multiple(self): method test_single (line 476) | def test_single(self): method test_ignore_tilde (line 482) | def test_ignore_tilde(self): function create_hook (line 489) | def create_hook(file_path): FILE: tests/lock_test.py class LockDirTest (line 22) | class LockDirTest(test_util.TempDirTestCase): method _call (line 25) | def _call(cls, *args, **kwargs): method test_it (line 29) | def test_it(self): class LockFileTest (line 36) | class LockFileTest(test_util.TempDirTestCase): method _call (line 39) | def _call(cls, *args, **kwargs): method setUp (line 43) | def setUp(self): method test_acquire_without_deletion (line 47) | def test_acquire_without_deletion(self): method test_contention (line 59) | def test_contention(self): method test_locked_repr (line 64) | def test_locked_repr(self): method test_released_repr (line 73) | def test_released_repr(self): method _test_repr_common (line 80) | def _test_repr_common(self, lock_file, lock_repr): method test_race (line 86) | def test_race(self): method test_removed (line 104) | def test_removed(self): method test_unexpected_lockf_or_locking_err (line 109) | def test_unexpected_lockf_or_locking_err(self): method test_unexpected_os_err (line 124) | def test_unexpected_os_err(self): FILE: tests/log_test.py class PreArgParseSetupTest (line 21) | class PreArgParseSetupTest(unittest.TestCase): method _call (line 25) | def _call(cls, *args, **kwargs): # pylint: disable=unused-argument method test_it (line 33) | def test_it(self, mock_register, mock_get, mock_except_hook, mock_sys): class PostArgParseSetupTest (line 59) | class PostArgParseSetupTest(test_util.ConfigTestCase): method _call (line 63) | def _call(cls, *args, **kwargs): method setUp (line 67) | def setUp(self): method tearDown (line 84) | def tearDown(self): method test_common (line 91) | def test_common(self): method test_debug (line 116) | def test_debug(self): method test_quiet (line 120) | def test_quiet(self): class SetupLogFileHandlerTest (line 125) | class SetupLogFileHandlerTest(test_util.ConfigTestCase): method _call (line 129) | def _call(cls, *args, **kwargs): method setUp (line 133) | def setUp(self): method test_failure (line 138) | def test_failure(self, mock_handler): method test_success_with_rollover (line 148) | def test_success_with_rollover(self): method test_success_without_rollover (line 151) | def test_success_without_rollover(self): method _test_success_common (line 155) | def _test_success_common(self, should_rollover): method test_max_log_backups_used (line 170) | def test_max_log_backups_used(self, mock_handler): class ColoredStreamHandlerTest (line 176) | class ColoredStreamHandlerTest(unittest.TestCase): method setUp (line 179) | def setUp(self): method tearDown (line 189) | def tearDown(self): method test_format (line 192) | def test_format(self): method test_format_and_red_level (line 197) | def test_format_and_red_level(self): class MemoryHandlerTest (line 208) | class MemoryHandlerTest(unittest.TestCase): method setUp (line 210) | def setUp(self): method tearDown (line 221) | def tearDown(self): method test_flush (line 225) | def test_flush(self): method test_not_flushed (line 230) | def test_not_flushed(self): method test_target_reset (line 236) | def test_target_reset(self): method _test_log_debug (line 247) | def _test_log_debug(self): class TempHandlerTest (line 251) | class TempHandlerTest(unittest.TestCase): method setUp (line 253) | def setUp(self): method tearDown (line 258) | def tearDown(self): method test_permissions (line 261) | def test_permissions(self): method test_delete (line 264) | def test_delete(self): method test_no_delete (line 268) | def test_no_delete(self): class PreArgParseExceptHookTest (line 275) | class PreArgParseExceptHookTest(unittest.TestCase): method _call (line 278) | def _call(cls, *args, **kwargs): method test_it (line 283) | def test_it(self, mock_post_arg_parse_except_hook): class PostArgParseExceptHookTest (line 295) | class PostArgParseExceptHookTest(unittest.TestCase): method _call (line 298) | def _call(cls, *args, **kwargs): method setUp (line 302) | def setUp(self): method test_base_exception (line 306) | def test_base_exception(self): method test_debug (line 312) | def test_debug(self): method test_custom_error (line 318) | def test_custom_error(self): method test_acme_error (line 324) | def test_acme_error(self): method test_other_error (line 337) | def test_other_error(self): method _test_common (line 343) | def _test_common(self, error_type, debug): method _assert_exception_logged (line 369) | def _assert_exception_logged(self, log_func, exc_type): method _assert_logfile_output (line 378) | def _assert_logfile_output(self, output): method _assert_quiet_output (line 382) | def _assert_quiet_output(self, mock_logger, output): class ExitWithLogPathTest (line 388) | class ExitWithLogPathTest(test_util.TempDirTestCase): method _call (line 391) | def _call(cls, *args, **kwargs): method test_log_file (line 395) | def test_log_file(self): method test_log_dir (line 403) | def test_log_dir(self): method _test_common (line 409) | def _test_common(self, *args, **kwargs): FILE: tests/main_test.py class TestHandleIdenticalCerts (line 49) | class TestHandleIdenticalCerts(unittest.TestCase): method test_handle_identical_cert_request_pending (line 51) | def test_handle_identical_cert_request_pending(self): class RunTest (line 59) | class RunTest(test_util.ConfigTestCase): method setUp (line 62) | def setUp(self): method _call (line 84) | def _call(self): method test_newcert_success (line 93) | def test_newcert_success(self): method test_reinstall_success (line 99) | def test_reinstall_success(self): method test_renewal_success (line 105) | def test_renewal_success(self): method test_run_enhancement_not_supported (line 112) | def test_run_enhancement_not_supported(self, mock_choose): class CertonlyTest (line 121) | class CertonlyTest(unittest.TestCase): method setUp (line 124) | def setUp(self): method tearDown (line 128) | def tearDown(self): method _call (line 131) | def _call(self, args): method test_no_reinstall_text_pause (line 145) | def test_no_reinstall_text_pause(self, unused_report, mock_auth, method _assert_no_pause (line 153) | def _assert_no_pause(self, message, pause=True): # pylint: disable=un... method test_find_lineage_for_domains_and_certname (line 160) | def test_find_lineage_for_domains_and_certname(self, mock_report_cert, method test_find_lineage_for_domains_new_certname (line 189) | def test_find_lineage_for_domains_new_certname(self, mock_report_cert, class FindDomainsOrCertnameTest (line 205) | class FindDomainsOrCertnameTest(unittest.TestCase): method test_display_ops (line 209) | def test_display_ops(self, mock_choose_names): method test_no_results (line 217) | def test_no_results(self, mock_choose_names): method test_grab_domains (line 224) | def test_grab_domains(self, mock_domains): class RevokeTest (line 232) | class RevokeTest(test_util.TempDirTestCase): method setUp (line 235) | def setUp(self): method _call (line 268) | def _call(self, args=None): method test_revoke_with_reason (line 281) | def test_revoke_with_reason(self, mock_acme_client, method test_revoke_by_certname (line 298) | def test_revoke_by_certname(self, mock_cert_path_for_cert_name, method test_revocation_success (line 307) | def test_revocation_success(self, mock_delete_if_appropriate): method test_revocation_error (line 312) | def test_revocation_error(self): method test_revocation_with_prompt (line 321) | def test_revocation_with_prompt(self, mock_get_utility, class DeleteIfAppropriateTest (line 328) | class DeleteIfAppropriateTest(test_util.ConfigTestCase): method _call (line 331) | def _call(self, mock_config): method _test_delete_opt_out_common (line 335) | def _test_delete_opt_out_common(self, mock_get_utility): method test_delete_flag_opt_out (line 342) | def test_delete_flag_opt_out(self, mock_get_utility): method test_delete_prompt_opt_out (line 347) | def test_delete_prompt_opt_out(self, mock_get_utility): method test_overlapping_archive_dirs (line 358) | def test_overlapping_archive_dirs(self, mock_get_utility, method test_cert_path_only (line 377) | def test_cert_path_only(self, mock_get_utility, method test_noninteractive_deletion (line 395) | def test_noninteractive_deletion(self, mock_get_utility, mock_delete, method test_opt_in_deletion (line 415) | def test_opt_in_deletion(self, mock_get_utility, mock_delete, class DetermineAccountTest (line 431) | class DetermineAccountTest(test_util.ConfigTestCase): method setUp (line 434) | def setUp(self): method _call (line 445) | def _call(self): method test_args_account_set (line 452) | def test_args_account_set(self): method test_single_account (line 459) | def test_single_account(self): method test_multiple_accounts (line 466) | def test_multiple_accounts(self, mock_choose_accounts): method test_no_accounts_no_email (line 477) | def test_no_accounts_no_email(self, mock_get_email): method test_no_accounts_email (line 490) | def test_no_accounts_email(self): class MainTest (line 499) | class MainTest(test_util.ConfigTestCase): method setUp (line 502) | def setUp(self): method tearDown (line 512) | def tearDown(self): method _call (line 518) | def _call(self, args, stdout=None, mockisfile=False): method _call_no_clientmock (line 543) | def _call_no_clientmock(self, args, stdout=None): method test_no_flags (line 554) | def test_no_flags(self): method test_version_string_program_name (line 559) | def test_version_string_program_name(self): method _cli_missing_flag (line 572) | def _cli_missing_flag(self, args, message): method test_noninteractive (line 584) | def test_noninteractive(self, _): method test_user_agent (line 596) | def test_user_agent(self, gsc, _obt, det, _client, _, __): method test_installer_selection (line 623) | def test_installer_selection(self, mock_pick_installer, _rec): method test_installer_certname (line 631) | def test_installer_certname(self, _inst, _rec, mock_install): method test_installer_param_override (line 649) | def test_installer_param_override(self, _inst, _rec, mock_install, _): method test_installer_param_error (line 675) | def test_installer_param_error(self, _inst, _rec): method test_installer_select_cert (line 685) | def test_installer_select_cert(self, mock_inst, mock_getcert, _inst, _... method test_configurator_selection (line 699) | def test_configurator_selection(self, mock_exe_exists, _, __): method test_rollback (line 737) | def test_rollback(self, _): method test_update_symlinks (line 746) | def test_update_symlinks(self, mock_cert_manager): method test_certificates (line 751) | def test_certificates(self, mock_cert_manager): method test_delete (line 756) | def test_delete(self, mock_cert_manager): method test_plugins (line 761) | def test_plugins(self, _): method test_plugins_no_args (line 770) | def test_plugins_no_args(self, _det, mock_disco): method test_plugins_no_args_unprivileged (line 785) | def test_plugins_no_args_unprivileged(self, _det, mock_disco): method test_plugins_init (line 807) | def test_plugins_init(self, _det, mock_disco): method test_plugins_prepare (line 825) | def test_plugins_prepare(self, _det, mock_disco): method test_certonly_abspath (line 844) | def test_certonly_abspath(self): method test_certonly_bad_args (line 861) | def test_certonly_bad_args(self): method test_check_config_sanity_domain (line 868) | def test_check_config_sanity_domain(self): method test_csr_with_besteffort (line 882) | def test_csr_with_besteffort(self): method test_run_with_csr (line 887) | def test_run_with_csr(self): method test_csr_with_no_domains (line 896) | def test_csr_with_no_domains(self): method test_csr_with_inconsistent_domains (line 902) | def test_csr_with_inconsistent_domains(self): method _certonly_new_request_common (line 907) | def _certonly_new_request_common(self, mock_client, args=None): method test_certonly_dry_run_new_request_success (line 919) | def test_certonly_dry_run_new_request_success(self, mock_get_utility): method test_certonly_new_request_success (line 932) | def test_certonly_new_request_success(self, mock_get_utility, mock_not... method test_certonly_new_request_failure (line 952) | def test_certonly_new_request_failure(self): method _test_renewal_common (line 958) | def _test_renewal_common(self, due_for_renewal, extra_args, log_out=None, method test_certonly_renewal (line 1034) | def test_certonly_renewal(self, _): method test_certonly_renewal_triggers (line 1045) | def test_certonly_renewal_triggers(self, _, __): method _dump_log (line 1059) | def _dump_log(self): method test_renew_verb (line 1066) | def test_renew_verb(self): method test_reuse_key (line 1071) | def test_reuse_key(self): method test_reuse_key_no_dry_run (line 1077) | def test_reuse_key_no_dry_run(self, unused_save_successor): method test_noninteractive_renewal_delay (line 1083) | def test_noninteractive_renewal_delay(self, stdin): method test_interactive_no_renewal_delay (line 1095) | def test_interactive_no_renewal_delay(self, stdin): method test_renew_skips_recent_certs (line 1103) | def test_renew_skips_recent_certs(self, should_renew): method test_quiet_renew (line 1113) | def test_quiet_renew(self, _): method test_renew_hook_validation (line 1126) | def test_renew_hook_validation(self): method test_renew_no_hook_validation (line 1132) | def test_renew_no_hook_validation(self): method test_renew_verb_empty_config (line 1140) | def test_renew_verb_empty_config(self): method test_renew_with_certname (line 1149) | def test_renew_with_certname(self): method test_renew_with_bad_certname (line 1154) | def test_renew_with_bad_certname(self): method _make_dummy_renewal_config (line 1159) | def _make_dummy_renewal_config(self): method _test_renew_common (line 1165) | def _test_renew_common(self, renewalparams=None, names=None, method test_renew_no_renewalparams (line 1186) | def test_renew_no_renewalparams(self): method test_renew_no_authenticator (line 1189) | def test_renew_no_authenticator(self): method test_renew_with_bad_int (line 1193) | def test_renew_with_bad_int(self): method test_renew_with_nonetype_http01 (line 1199) | def test_renew_with_nonetype_http01(self): method test_renew_with_bad_domain (line 1205) | def test_renew_with_bad_domain(self): method test_renew_with_configurator (line 1212) | def test_renew_with_configurator(self, mock_sel): method test_renew_plugin_config_restoration (line 1219) | def test_renew_plugin_config_restoration(self): method test_renew_with_webroot_map (line 1226) | def test_renew_with_webroot_map(self): method test_renew_reconstitute_error (line 1232) | def test_renew_reconstitute_error(self): method test_renew_obtain_cert_error (line 1238) | def test_renew_obtain_cert_error(self): method test_renew_with_bad_cli_args (line 1251) | def test_renew_with_bad_cli_args(self): method test_no_renewal_with_hooks (line 1257) | def test_no_renewal_with_hooks(self): method test_certonly_reinstall (line 1268) | def test_certonly_reinstall(self, mock_init, mock_renewal, mock_get_ut... method _test_certonly_csr_common (line 1277) | def _test_certonly_csr_common(self, extra_args=None): method test_certonly_csr (line 1311) | def test_certonly_csr(self): method test_certonly_csr_dry_run (line 1319) | def test_certonly_csr_dry_run(self): method test_revoke_with_key (line 1327) | def test_revoke_with_key(self, mock_acme_client, method test_revoke_with_key_mismatch (line 1343) | def test_revoke_with_key_mismatch(self): method test_revoke_without_key (line 1351) | def test_revoke_without_key(self, mock_determine_account, method test_register (line 1364) | def test_register(self, _): method test_update_account_no_existing_accounts (line 1380) | def test_update_account_no_existing_accounts(self): method test_update_account_with_email (line 1393) | def test_update_account_with_email(self, mock_utility, mock_email): method test_plugin_selection_error (line 1423) | def test_plugin_selection_error(self, mock_run, mock_choose): class UnregisterTest (line 1435) | class UnregisterTest(unittest.TestCase): method setUp (line 1436) | def setUp(self): method tearDown (line 1444) | def tearDown(self): method test_abort_unregister (line 1448) | def test_abort_unregister(self): method test_unregister (line 1460) | def test_unregister(self): method test_unregister_no_account (line 1480) | def test_unregister_no_account(self): class MakeOrVerifyNeededDirs (line 1497) | class MakeOrVerifyNeededDirs(test_util.ConfigTestCase): method test_it (line 1501) | def test_it(self, mock_util): class EnhanceTest (line 1518) | class EnhanceTest(test_util.ConfigTestCase): method setUp (line 1521) | def setUp(self): method tearDown (line 1527) | def tearDown(self): method _call (line 1530) | def _call(self, args): method test_selection_question (line 1550) | def test_selection_question(self, mock_find, mock_choose, mock_lineage... method test_selection_auth_warning (line 1564) | def test_selection_auth_warning(self, mock_find, mock_choose, mock_lin... method test_enhance_config_call (line 1578) | def test_enhance_config_call(self, _rec, mock_choose, mock_lineage): method test_enhance_noninteractive (line 1596) | def test_enhance_noninteractive(self, _rec, mock_choose, mock_lineage): method test_user_abort_domains (line 1608) | def test_user_abort_domains(self, _rec, mock_choose): method test_no_enhancements_defined (line 1615) | def test_no_enhancements_defined(self): method test_plugin_selection_error (line 1622) | def test_plugin_selection_error(self, _rec, mock_choose, mock_pick): method test_enhancement_enable (line 1634) | def test_enhancement_enable(self, _, _rec, mock_inst, mock_choose, moc... method test_enhancement_enable_not_supported (line 1648) | def test_enhancement_enable_not_supported(self, _, _rec, mock_inst, mo... method test_enhancement_enable_conflict (line 1656) | def test_enhancement_enable_conflict(self): class InstallTest (line 1662) | class InstallTest(test_util.ConfigTestCase): method setUp (line 1665) | def setUp(self): method test_install_enhancement_not_supported (line 1671) | def test_install_enhancement_not_supported(self, mock_inst, _rec): method test_install_enhancement_no_certname (line 1682) | def test_install_enhancement_no_certname(self, mock_inst, _rec): FILE: tests/ocsp_test.py class OCSPTestOpenSSL (line 33) | class OCSPTestOpenSSL(unittest.TestCase): method setUp (line 38) | def setUp(self): method tearDown (line 48) | def tearDown(self): method test_init (line 54) | def test_init(self, mock_exists, mock_popen, mock_log): method test_ocsp_revoked (line 80) | def test_ocsp_revoked(self, mock_run, mock_na, mock_determine): method test_determine_ocsp_server (line 109) | def test_determine_ocsp_server(self): method test_translate_ocsp (line 118) | def test_translate_ocsp(self, mock_run, mock_log): class OSCPTestCryptography (line 143) | class OSCPTestCryptography(unittest.TestCase): method setUp (line 148) | def setUp(self): method test_ensure_cryptography_toggled (line 165) | def test_ensure_cryptography_toggled(self, mock_revoke, mock_determine): method test_revoke (line 171) | def test_revoke(self): method test_responder_is_issuer (line 176) | def test_responder_is_issuer(self): method test_responder_is_authorized_delegate (line 190) | def test_responder_is_authorized_delegate(self): method test_revoke_resiliency (line 208) | def test_revoke_resiliency(self): function _ocsp_mock (line 281) | def _ocsp_mock(certificate_status, response_status, function _construct_mock_ocsp_response (line 299) | def _construct_mock_ocsp_response(certificate_status, response_status): FILE: tests/plugins/common_test.py class NamespaceFunctionsTest (line 24) | class NamespaceFunctionsTest(unittest.TestCase): method test_option_namespace (line 27) | def test_option_namespace(self): method test_dest_namespace (line 31) | def test_dest_namespace(self): method test_dest_namespace_with_dashes (line 35) | def test_dest_namespace_with_dashes(self): class PluginTest (line 40) | class PluginTest(unittest.TestCase): method setUp (line 43) | def setUp(self): method test_init (line 55) | def test_init(self): method test_option_namespace (line 59) | def test_option_namespace(self): method test_option_name (line 62) | def test_option_name(self): method test_dest_namespace (line 65) | def test_dest_namespace(self): method test_dest (line 68) | def test_dest(self): method test_conf (line 72) | def test_conf(self): method test_inject_parser_options (line 75) | def test_inject_parser_options(self): class InstallerTest (line 84) | class InstallerTest(test_util.ConfigTestCase): method setUp (line 87) | def setUp(self): method test_add_to_real_checkpoint (line 96) | def test_add_to_real_checkpoint(self): method test_add_to_real_checkpoint2 (line 101) | def test_add_to_real_checkpoint2(self): method test_add_to_temporary_checkpoint (line 104) | def test_add_to_temporary_checkpoint(self): method _test_add_to_checkpoint_common (line 107) | def _test_add_to_checkpoint_common(self, temporary): method test_finalize_checkpoint (line 121) | def test_finalize_checkpoint(self): method test_recovery_routine (line 124) | def test_recovery_routine(self): method test_revert_temporary_config (line 127) | def test_revert_temporary_config(self): method test_rollback_checkpoints (line 130) | def test_rollback_checkpoints(self): method _test_wrapped_method (line 133) | def _test_wrapped_method(self, name, *args, **kwargs): method _test_adapted_method (line 144) | def _test_adapted_method(self, installer_func, method test_install_ssl_dhparams (line 164) | def test_install_ssl_dhparams(self): method _current_ssl_dhparams_hash (line 168) | def _current_ssl_dhparams_hash(self): method test_current_file_hash_in_all_hashes (line 172) | def test_current_file_hash_in_all_hashes(self): class AddrTest (line 179) | class AddrTest(unittest.TestCase): method setUp (line 182) | def setUp(self): method test_fromstring (line 193) | def test_fromstring(self): method test_str (line 214) | def test_str(self): method test_get_addr_obj (line 222) | def test_get_addr_obj(self): method test_eq (line 230) | def test_eq(self): method test_set_inclusion (line 243) | def test_set_inclusion(self): class ChallengePerformerTest (line 260) | class ChallengePerformerTest(unittest.TestCase): method setUp (line 263) | def setUp(self): method test_add_chall (line 269) | def test_add_chall(self): method test_perform (line 274) | def test_perform(self): class InstallVersionControlledFileTest (line 278) | class InstallVersionControlledFileTest(test_util.TempDirTestCase): method setUp (line 281) | def setUp(self): method _call (line 293) | def _call(self): method _current_file_hash (line 300) | def _current_file_hash(self): method _assert_current_file (line 303) | def _assert_current_file(self): method test_no_file (line 308) | def test_no_file(self): method test_current_file (line 313) | def test_current_file(self): method test_prev_file_updates_to_current (line 319) | def test_prev_file_updates_to_current(self): method test_manually_modified_current_file_does_not_update (line 324) | def test_manually_modified_current_file_does_not_update(self): method test_manually_modified_past_file_warns (line 337) | def test_manually_modified_past_file_warns(self): FILE: tests/plugins/disco_test.py class PluginEntryPointTest (line 27) | class PluginEntryPointTest(unittest.TestCase): method setUp (line 30) | def setUp(self): method test_entry_point_to_plugin_name (line 45) | def test_entry_point_to_plugin_name(self): method test_description (line 60) | def test_description(self): method test_description_with_name (line 63) | def test_description_with_name(self): method test_long_description (line 68) | def test_long_description(self): method test_long_description_nonexistent (line 74) | def test_long_description_nonexistent(self): method test_ifaces (line 80) | def test_ifaces(self): method test__init__ (line 86) | def test__init__(self): method test_init (line 97) | def test_init(self): method test_verify (line 113) | def test_verify(self): method test_prepare (line 136) | def test_prepare(self): method test_prepare_misconfigured (line 146) | def test_prepare_misconfigured(self): method test_prepare_no_installation (line 159) | def test_prepare_no_installation(self): method test_prepare_generic_plugin_error (line 170) | def test_prepare_generic_plugin_error(self): method test_repr (line 180) | def test_repr(self): class PluginsRegistryTest (line 184) | class PluginsRegistryTest(unittest.TestCase): method _create_new_registry (line 188) | def _create_new_registry(cls, plugins): method setUp (line 192) | def setUp(self): method test_find_all (line 199) | def test_find_all(self): method test_getitem (line 210) | def test_getitem(self): method test_iter (line 213) | def test_iter(self): method test_len (line 216) | def test_len(self): method test_init (line 220) | def test_init(self): method test_filter (line 225) | def test_filter(self): method test_ifaces (line 232) | def test_ifaces(self): method test_verify (line 239) | def test_verify(self): method test_prepare (line 247) | def test_prepare(self): method test_prepare_order (line 252) | def test_prepare_order(self): method test_available (line 263) | def test_available(self): method test_find_init (line 270) | def test_find_init(self): method test_repr (line 276) | def test_repr(self): method test_str (line 281) | def test_str(self): FILE: tests/plugins/dns_common_lexicon_test.py class LexiconClientTest (line 11) | class LexiconClientTest(unittest.TestCase, dns_test_common_lexicon.BaseL... class _FakeLexiconClient (line 13) | class _FakeLexiconClient(dns_common_lexicon.LexiconClient): method setUp (line 16) | def setUp(self): FILE: tests/plugins/dns_common_test.py class DNSAuthenticatorTest (line 18) | class DNSAuthenticatorTest(test_util.TempDirTestCase, dns_test_common.Ba... class _FakeDNSAuthenticator (line 21) | class _FakeDNSAuthenticator(dns_common.DNSAuthenticator): method more_info (line 26) | def more_info(self): # pylint: disable=missing-docstring,no-self-use class _FakeConfig (line 29) | class _FakeConfig(object): method setUp (line 35) | def setUp(self): method test_perform (line 42) | def test_perform(self): method test_cleanup (line 47) | def test_cleanup(self): method test_prompt (line 55) | def test_prompt(self, mock_get_utility): method test_prompt_canceled (line 64) | def test_prompt_canceled(self, mock_get_utility): method test_prompt_file (line 71) | def test_prompt_file(self, mock_get_utility): method test_prompt_file_canceled (line 85) | def test_prompt_file_canceled(self, mock_get_utility): method test_configure_credentials (line 91) | def test_configure_credentials(self): method test_prompt_credentials (line 101) | def test_prompt_credentials(self, mock_get_utility): class CredentialsConfigurationTest (line 120) | class CredentialsConfigurationTest(test_util.TempDirTestCase): class _MockLoggingHandler (line 121) | class _MockLoggingHandler(logging.Handler): method __init__ (line 124) | def __init__(self, *args, **kwargs): method emit (line 128) | def emit(self, record): method reset (line 131) | def reset(self): method test_valid_file (line 135) | def test_valid_file(self): method test_nonexistent_file (line 144) | def test_nonexistent_file(self): method test_valid_file_with_unsafe_permissions (line 149) | def test_valid_file_with_unsafe_permissions(self): class CredentialsConfigurationRequireTest (line 161) | class CredentialsConfigurationRequireTest(test_util.TempDirTestCase): method setUp (line 163) | def setUp(self): method _write (line 168) | def _write(self, values): method test_valid (line 171) | def test_valid(self): method test_valid_but_extra (line 177) | def test_valid_but_extra(self): method test_valid_empty (line 183) | def test_valid_empty(self): method test_missing (line 189) | def test_missing(self): method test_blank (line 195) | def test_blank(self): method test_typo (line 201) | def test_typo(self): class DomainNameGuessTest (line 208) | class DomainNameGuessTest(unittest.TestCase): method test_simple_case (line 210) | def test_simple_case(self): method test_sub_domain (line 216) | def test_sub_domain(self): method test_second_level_domain (line 222) | def test_second_level_domain(self): FILE: tests/plugins/enhancements_test.py class EnhancementTest (line 11) | class EnhancementTest(test_util.ConfigTestCase): method setUp (line 14) | def setUp(self): method test_enhancement_enabled_enhancements (line 20) | def test_enhancement_enabled_enhancements(self, _): method test_are_requested (line 39) | def test_are_requested(self): method test_are_supported (line 46) | def test_are_supported(self): method test_enable (line 52) | def test_enable(self): FILE: tests/plugins/manual_test.py class AuthenticatorTest (line 16) | class AuthenticatorTest(test_util.TempDirTestCase): method setUp (line 19) | def setUp(self): method test_prepare_no_hook_noninteractive (line 44) | def test_prepare_no_hook_noninteractive(self): method test_prepare_bad_hook (line 48) | def test_prepare_bad_hook(self): method test_more_info (line 53) | def test_more_info(self): method test_get_chall_pref (line 56) | def test_get_chall_pref(self): method test_ip_logging_not_ok (line 61) | def test_ip_logging_not_ok(self, mock_get_utility): method test_ip_logging_ok (line 66) | def test_ip_logging_ok(self, mock_get_utility): method test_script_perform (line 71) | def test_script_perform(self): method test_manual_perform (line 97) | def test_manual_perform(self, mock_get_utility): method test_cleanup (line 108) | def test_cleanup(self): FILE: tests/plugins/null_test.py class InstallerTest (line 8) | class InstallerTest(unittest.TestCase): method setUp (line 11) | def setUp(self): method test_it (line 15) | def test_it(self): FILE: tests/plugins/selection_test.py class ConveniencePickPluginTest (line 17) | class ConveniencePickPluginTest(unittest.TestCase): method _test (line 20) | def _test(self, fun, ifaces): method test_authenticator (line 31) | def test_authenticator(self): method test_installer (line 35) | def test_installer(self): method test_configurator (line 39) | def test_configurator(self): class PickPluginTest (line 45) | class PickPluginTest(unittest.TestCase): method setUp (line 48) | def setUp(self): method _call (line 55) | def _call(self): method test_default_provided (line 60) | def test_default_provided(self): method test_no_default (line 65) | def test_no_default(self): method test_no_candidate (line 69) | def test_no_candidate(self): method test_single (line 72) | def test_single(self): method test_single_misconfigured (line 81) | def test_single_misconfigured(self): method test_multiple (line 90) | def test_multiple(self): method test_choose_plugin_none (line 103) | def test_choose_plugin_none(self): class ChoosePluginTest (line 114) | class ChoosePluginTest(unittest.TestCase): method setUp (line 117) | def setUp(self): method _call (line 131) | def _call(self): method test_selection (line 136) | def test_selection(self, mock_util): method test_more_info (line 143) | def test_more_info(self, mock_util): method test_no_choice (line 151) | def test_no_choice(self, mock_util): method test_new_interaction_avoidance (line 156) | def test_new_interaction_avoidance(self, mock_util): class GetUnpreparedInstallerTest (line 175) | class GetUnpreparedInstallerTest(test_util.ConfigTestCase): method setUp (line 178) | def setUp(self): method _call (line 193) | def _call(self): method test_no_installer_defined (line 197) | def test_no_installer_defined(self): method test_no_available_installers (line 201) | def test_no_available_installers(self): method test_get_plugin (line 206) | def test_get_plugin(self): method test_multiple_installers_returned (line 211) | def test_multiple_installers_returned(self): FILE: tests/plugins/standalone_test.py class ServerManagerTest (line 23) | class ServerManagerTest(unittest.TestCase): method setUp (line 26) | def setUp(self): method test_init (line 33) | def test_init(self): method _test_run_stop (line 38) | def _test_run_stop(self, challenge_type): method test_run_stop_http_01 (line 45) | def test_run_stop_http_01(self): method test_run_idempotent (line 48) | def test_run_idempotent(self): method test_run_bind_error (line 57) | def test_run_bind_error(self): function get_open_port (line 74) | def get_open_port(): class AuthenticatorTest (line 83) | class AuthenticatorTest(unittest.TestCase): method setUp (line 86) | def setUp(self): method test_more_info (line 93) | def test_more_info(self): method test_get_chall_pref (line 96) | def test_get_chall_pref(self): method test_perform (line 100) | def test_perform(self): method test_perform_eaddrinuse_retry (line 108) | def test_perform_eaddrinuse_retry(self, mock_get_utility): method test_perform_eaddrinuse_no_retry (line 120) | def test_perform_eaddrinuse_no_retry(self, mock_get_utility): method _assert_correct_yesno_call (line 129) | def _assert_correct_yesno_call(self, mock_yesno): method test_perform_eacces (line 134) | def test_perform_eacces(self): method test_perform_unexpected_socket_error (line 138) | def test_perform_unexpected_socket_error(self): method _fail_perform (line 143) | def _fail_perform(self, errno): method _get_achalls (line 149) | def _get_achalls(cls): method test_cleanup (line 157) | def test_cleanup(self): FILE: tests/plugins/storage_test.py class PluginStorageTest (line 14) | class PluginStorageTest(test_util.ConfigTestCase): method setUp (line 17) | def setUp(self): method test_load_errors_cant_read (line 24) | def test_load_errors_cant_read(self): method test_load_errors_empty (line 39) | def test_load_errors_empty(self): method test_load_errors_corrupted (line 51) | def test_load_errors_corrupted(self): method test_save_errors_cant_serialize (line 63) | def test_save_errors_cant_serialize(self): method test_save_errors_unable_to_write_file (line 73) | def test_save_errors_unable_to_write_file(self): method test_save_uninitialized (line 84) | def test_save_uninitialized(self): method test_namespace_isolation (line 89) | def test_namespace_isolation(self): method test_saved_state (line 101) | def test_saved_state(self): FILE: tests/plugins/util_test.py class GetPrefixTest (line 9) | class GetPrefixTest(unittest.TestCase): method test_get_prefix (line 11) | def test_get_prefix(self): class PathSurgeryTest (line 20) | class PathSurgeryTest(unittest.TestCase): method test_path_surgery (line 24) | def test_path_surgery(self, mock_debug): FILE: tests/plugins/webroot_test.py class AuthenticatorTest (line 28) | class AuthenticatorTest(unittest.TestCase): method setUp (line 34) | def setUp(self): method tearDown (line 54) | def tearDown(self): method test_more_info (line 57) | def test_more_info(self): method test_add_parser_arguments (line 62) | def test_add_parser_arguments(self): method test_prepare (line 67) | def test_prepare(self): method test_webroot_from_list (line 71) | def test_webroot_from_list(self, mock_get_utility): method test_webroot_from_list_help_and_cancel (line 88) | def test_webroot_from_list_help_and_cancel(self, mock_get_utility): method test_new_webroot (line 103) | def test_new_webroot(self, mock_get_utility): method test_new_webroot_empty_map_cancel (line 118) | def test_new_webroot_empty_map_cancel(self, mock_get_utility): method test_perform_missing_root (line 130) | def test_perform_missing_root(self): method test_perform_reraises_other_errors (line 135) | def test_perform_reraises_other_errors(self): method test_failed_chown (line 150) | def test_failed_chown(self, mock_ownership): method test_perform_new_webroot_not_in_map (line 155) | def test_perform_new_webroot_not_in_map(self, mock_get_utility): method test_perform_permissions (line 169) | def test_perform_permissions(self): method test_perform_cleanup (line 185) | def test_perform_cleanup(self): method test_perform_cleanup_existing_dirs (line 202) | def test_perform_cleanup_existing_dirs(self): method test_perform_cleanup_multiple_challenges (line 212) | def test_perform_cleanup_multiple_challenges(self): method test_cleanup_leftovers (line 230) | def test_cleanup_leftovers(self): method test_cleanup_failure (line 244) | def test_cleanup_failure(self, mock_rmdir): class WebrootActionTest (line 257) | class WebrootActionTest(unittest.TestCase): method setUp (line 263) | def setUp(self): method test_webroot_map_action (line 271) | def test_webroot_map_action(self): method test_domain_before_webroot (line 276) | def test_domain_before_webroot(self): method test_domain_before_webroot_error (line 282) | def test_domain_before_webroot_error(self): method test_multiwebroot (line 288) | def test_multiwebroot(self): method test_webroot_map_partial_without_perform (line 296) | def test_webroot_map_partial_without_perform(self): method _get_config_after_perform (line 309) | def _get_config_after_perform(self, config): FILE: tests/renewal_test.py class RenewalTest (line 13) | class RenewalTest(test_util.ConfigTestCase): method test_ancient_webroot_renewal_conf (line 15) | def test_ancient_webroot_renewal_conf(self, mock_set_by_cli): method test_webroot_params_conservation (line 31) | def test_webroot_params_conservation(self, mock_set_by_cli): class RestoreRequiredConfigElementsTest (line 55) | class RestoreRequiredConfigElementsTest(test_util.ConfigTestCase): method _call (line 58) | def _call(cls, *args, **kwargs): method test_allow_subset_of_names_success (line 63) | def test_allow_subset_of_names_success(self, mock_set_by_cli): method test_allow_subset_of_names_failure (line 69) | def test_allow_subset_of_names_failure(self, mock_set_by_cli): method test_pref_challs_list (line 76) | def test_pref_challs_list(self, mock_set_by_cli): method test_pref_challs_str (line 84) | def test_pref_challs_str(self, mock_set_by_cli): method test_pref_challs_failure (line 92) | def test_pref_challs_failure(self, mock_set_by_cli): method test_must_staple_success (line 98) | def test_must_staple_success(self, mock_set_by_cli): method test_must_staple_failure (line 104) | def test_must_staple_failure(self, mock_set_by_cli): FILE: tests/renewupdater_test.py class RenewUpdaterTest (line 13) | class RenewUpdaterTest(test_util.ConfigTestCase): method setUp (line 16) | def setUp(self): method test_server_updates (line 27) | def test_server_updates(self, _, mock_geti, mock_select, mock_getsave): method test_renew_deployer (line 44) | def test_renew_deployer(self): method test_updater_skip_dry_run (line 51) | def test_updater_skip_dry_run(self, mock_log): method test_deployer_skip_dry_run (line 59) | def test_deployer_skip_dry_run(self, mock_log): method test_enhancement_updates (line 67) | def test_enhancement_updates(self, mock_geti): method test_enhancement_deployer (line 73) | def test_enhancement_deployer(self): method test_enhancement_updates_not_called (line 79) | def test_enhancement_updates_not_called(self, mock_geti): method test_enhancement_deployer_not_called (line 85) | def test_enhancement_deployer_not_called(self): method test_enhancement_no_updater (line 92) | def test_enhancement_no_updater(self, mock_geti): method test_enhancement_no_deployer (line 107) | def test_enhancement_no_deployer(self): FILE: tests/reporter_test.py class ReporterTest (line 9) | class ReporterTest(unittest.TestCase): method setUp (line 11) | def setUp(self): method tearDown (line 18) | def tearDown(self): method test_multiline_message (line 21) | def test_multiline_message(self): method test_tty_print_empty (line 28) | def test_tty_print_empty(self): method test_no_tty_print_empty (line 32) | def test_no_tty_print_empty(self): method test_tty_successful_exit (line 41) | def test_tty_successful_exit(self): method test_no_tty_successful_exit (line 45) | def test_no_tty_successful_exit(self): method test_tty_unsuccessful_exit (line 48) | def test_tty_unsuccessful_exit(self): method test_no_tty_unsuccessful_exit (line 52) | def test_no_tty_unsuccessful_exit(self): method _successful_exit_common (line 55) | def _successful_exit_common(self): method _unsuccessful_exit_common (line 64) | def _unsuccessful_exit_common(self): method _add_messages (line 76) | def _add_messages(self): FILE: tests/reverter_test.py class ReverterCheckpointLocalTest (line 16) | class ReverterCheckpointLocalTest(test_util.ConfigTestCase): method setUp (line 18) | def setUp(self): method tearDown (line 30) | def tearDown(self): method test_no_change (line 38) | def test_no_change(self, mock_read): method test_basic_add_to_temp_checkpoint (line 51) | def test_basic_add_to_temp_checkpoint(self): method test_add_to_checkpoint_copy_failure (line 66) | def test_add_to_checkpoint_copy_failure(self): method test_checkpoint_conflict (line 73) | def test_checkpoint_conflict(self): method test_multiple_saves_and_temp_revert (line 92) | def test_multiple_saves_and_temp_revert(self): method test_multiple_registration_fail_and_revert (line 101) | def test_multiple_registration_fail_and_revert(self): method test_multiple_registration_same_file (line 121) | def test_multiple_registration_same_file(self): method test_register_file_creation_write_error (line 131) | def test_register_file_creation_write_error(self): method test_bad_registration (line 139) | def test_bad_registration(self): method test_register_undo_command (line 145) | def test_register_undo_command(self): method test_bad_register_undo_command (line 159) | def test_bad_register_undo_command(self): method test_run_undo_commands (line 168) | def test_run_undo_commands(self, mock_run): method test_recovery_routine_in_progress_failure (line 181) | def test_recovery_routine_in_progress_failure(self): method test_recover_checkpoint_revert_temp_failures (line 189) | def test_recover_checkpoint_revert_temp_failures(self): method test_recover_checkpoint_rollback_failure (line 202) | def test_recover_checkpoint_rollback_failure(self): method test_recover_checkpoint_copy_failure (line 214) | def test_recover_checkpoint_copy_failure(self): method test_recover_checkpoint_rm_failure (line 222) | def test_recover_checkpoint_rm_failure(self): method test_recover_checkpoint_missing_new_files (line 231) | def test_recover_checkpoint_missing_new_files(self, mock_warn): method test_recover_checkpoint_remove_failure (line 238) | def test_recover_checkpoint_remove_failure(self, mock_remove): method test_recovery_routine_temp_and_perm (line 244) | def test_recovery_routine_temp_and_perm(self): class TestFullCheckpointsReverter (line 278) | class TestFullCheckpointsReverter(test_util.ConfigTestCase): method setUp (line 280) | def setUp(self): method tearDown (line 291) | def tearDown(self): method test_rollback_improper_inputs (line 298) | def test_rollback_improper_inputs(self): method test_rollback_finalize_checkpoint_valid_inputs (line 306) | def test_rollback_finalize_checkpoint_valid_inputs(self): method test_finalize_checkpoint_no_in_progress (line 336) | def test_finalize_checkpoint_no_in_progress(self): method test_finalize_checkpoint_cannot_title (line 341) | def test_finalize_checkpoint_cannot_title(self, mock_move): method test_finalize_checkpoint_no_rename_directory (line 349) | def test_finalize_checkpoint_no_rename_directory(self, mock_replace): method test_rollback_too_many (line 358) | def test_rollback_too_many(self, mock_logger): method test_multi_rollback (line 369) | def test_multi_rollback(self): method _setup_three_checkpoints (line 377) | def _setup_three_checkpoints(self): function setup_test_files (line 406) | def setup_test_files(): function get_save_notes (line 424) | def get_save_notes(dire): function get_filepaths (line 429) | def get_filepaths(dire): function get_new_files (line 434) | def get_new_files(dire): function get_undo_commands (line 439) | def get_undo_commands(dire): function read_in (line 445) | def read_in(path): function update_file (line 451) | def update_file(filename, string): FILE: tests/storage_test.py function unlink_all (line 23) | def unlink_all(rc_object): function fill_with_sample_data (line 29) | def fill_with_sample_data(rc_object): class RelevantValuesTest (line 36) | class RelevantValuesTest(unittest.TestCase): method setUp (line 39) | def setUp(self): method _call (line 42) | def _call(self, *args, **kwargs): method test_namespace (line 48) | def test_namespace(self, mock_find_all, mock_option_was_set): method test_option_set (line 57) | def test_option_set(self, mock_option_was_set): method test_option_unset (line 69) | def test_option_unset(self, mock_option_was_set): class BaseRenewableCertTest (line 78) | class BaseRenewableCertTest(test_util.ConfigTestCase): method setUp (line 86) | def setUp(self): method _write_out_kind (line 124) | def _write_out_kind(self, kind, ver, value=None): method _write_out_ex_kinds (line 136) | def _write_out_ex_kinds(self): class RenewableCertTests (line 142) | class RenewableCertTests(BaseRenewableCertTest): method test_initialization (line 145) | def test_initialization(self): method test_renewal_bad_config (line 152) | def test_renewal_bad_config(self): method test_renewal_incomplete_config (line 167) | def test_renewal_incomplete_config(self): method test_no_renewal_version (line 181) | def test_no_renewal_version(self): method test_renewal_newer_version (line 191) | def test_renewal_newer_version(self): method test_consistent (line 203) | def test_consistent(self): method test_current_target (line 245) | def test_current_target(self): method test_current_version (line 263) | def test_current_version(self): method test_no_current_version (line 271) | def test_no_current_version(self): method test_latest_and_next_versions (line 274) | def test_latest_and_next_versions(self): method test_ensure_deployed (line 298) | def test_ensure_deployed(self, mock_logger): method test_update_link_to (line 314) | def test_update_link_to(self): method test_version (line 333) | def test_version(self): method test_update_all_links_to_success (line 341) | def test_update_all_links_to_success(self): method test_update_all_links_to_partial_failure (line 353) | def test_update_all_links_to_partial_failure(self): method test_update_all_links_to_full_failure (line 369) | def test_update_all_links_to_full_failure(self): method test_has_pending_deployment (line 384) | def test_has_pending_deployment(self): method test_names (line 398) | def test_names(self): method test_time_interval_judgments (line 411) | def test_time_interval_judgments(self, mock_datetime, mock_cli): method test_autorenewal_is_enabled (line 455) | def test_autorenewal_is_enabled(self): method test_should_autorenew (line 466) | def test_should_autorenew(self, mock_ocsp, mock_cli): method test_save_successor (line 482) | def test_save_successor(self, mock_rv): method test_save_successor_maintains_group_mode (line 546) | def test_save_successor_maintains_group_mode(self, mock_rv): method test_save_successor_maintains_gid (line 568) | def test_save_successor_maintains_gid(self, mock_ownership, mock_rv): method test_new_lineage (line 581) | def test_new_lineage(self, mock_rv): method test_new_lineage_nonexistent_dirs (line 628) | def test_new_lineage_nonexistent_dirs(self, mock_rv): method test_invalid_config_filename (line 650) | def test_invalid_config_filename(self, mock_uln): method test_bad_kind (line 657) | def test_bad_kind(self): method test_ocsp_revoked (line 676) | def test_ocsp_revoked(self, mock_checker): method test_add_time_interval (line 705) | def test_add_time_interval(self): method test_is_test_cert (line 747) | def test_is_test_cert(self): method test_missing_cert (line 760) | def test_missing_cert(self): method test_write_renewal_config (line 770) | def test_write_renewal_config(self): method test_update_symlinks (line 803) | def test_update_symlinks(self): class DeleteFilesTest (line 818) | class DeleteFilesTest(BaseRenewableCertTest): method setUp (line 820) | def setUp(self): method _call (line 836) | def _call(self): method test_delete_all_files (line 841) | def test_delete_all_files(self): method test_bad_renewal_config (line 851) | def test_bad_renewal_config(self): method test_no_renewal_config (line 861) | def test_no_renewal_config(self): method test_no_cert_file (line 868) | def test_no_cert_file(self): method test_no_readme_file (line 878) | def test_no_readme_file(self): method test_livedir_not_empty (line 888) | def test_livedir_not_empty(self): method test_no_archive (line 899) | def test_no_archive(self): class CertPathForCertNameTest (line 908) | class CertPathForCertNameTest(BaseRenewableCertTest): method setUp (line 910) | def setUp(self): method _call (line 918) | def _call(self, cli_config, certname): method test_simple_cert_name (line 922) | def test_simple_cert_name(self): method test_no_such_cert_name (line 925) | def test_no_such_cert_name(self): FILE: tests/util_test.py class RunScriptTest (line 17) | class RunScriptTest(unittest.TestCase): method _call (line 20) | def _call(cls, params): method test_default (line 25) | def test_default(self, mock_popen): method test_bad_process (line 35) | def test_bad_process(self, mock_popen): method test_failure (line 41) | def test_failure(self, mock_popen): class ExeExistsTest (line 48) | class ExeExistsTest(unittest.TestCase): method _call (line 52) | def _call(cls, exe): method test_exe_exists (line 56) | def test_exe_exists(self): method test_exe_not_exists (line 60) | def test_exe_not_exists(self): class LockDirUntilExit (line 65) | class LockDirUntilExit(test_util.TempDirTestCase): method _call (line 68) | def _call(cls, *args, **kwargs): method setUp (line 72) | def setUp(self): method test_it (line 80) | def test_it(self, mock_register, mock_logger): class SetUpCoreDirTest (line 100) | class SetUpCoreDirTest(test_util.TempDirTestCase): method _call (line 103) | def _call(self, *args, **kwargs): method test_success (line 108) | def test_success(self, mock_lock): method test_failure (line 115) | def test_failure(self, mock_make_or_verify): class MakeOrVerifyDirTest (line 120) | class MakeOrVerifyDirTest(test_util.TempDirTestCase): method setUp (line 128) | def setUp(self): method _call (line 134) | def _call(self, directory, mode): method test_creates_dir_when_missing (line 138) | def test_creates_dir_when_missing(self): method test_existing_correct_mode_does_not_fail (line 144) | def test_existing_correct_mode_does_not_fail(self): method test_existing_wrong_mode_fails (line 148) | def test_existing_wrong_mode_fails(self): method test_reraises_os_error (line 151) | def test_reraises_os_error(self): class UniqueFileTest (line 157) | class UniqueFileTest(test_util.TempDirTestCase): method setUp (line 160) | def setUp(self): method _call (line 165) | def _call(self, mode=0o600): method test_returns_fd_for_writing (line 169) | def test_returns_fd_for_writing(self): method test_right_mode (line 176) | def test_right_mode(self): method test_default_exists (line 184) | def test_default_exists(self): class UniqueLineageNameTest (line 216) | class UniqueLineageNameTest(test_util.TempDirTestCase): method _call (line 219) | def _call(self, filename, mode=0o777): method test_basic (line 223) | def test_basic(self): method test_multiple (line 229) | def test_multiple(self): method test_failure (line 240) | def test_failure(self): class SafelyRemoveTest (line 245) | class SafelyRemoveTest(test_util.TempDirTestCase): method setUp (line 248) | def setUp(self): method _call (line 253) | def _call(self): method test_exists (line 257) | def test_exists(self): method test_missing (line 263) | def test_missing(self): method test_other_error_passthrough (line 268) | def test_other_error_passthrough(self): class SafeEmailTest (line 274) | class SafeEmailTest(unittest.TestCase): method _call (line 277) | def _call(cls, addr): method test_valid_emails (line 281) | def test_valid_emails(self): method test_invalid_emails (line 290) | def test_invalid_emails(self): class AddDeprecatedArgumentTest (line 300) | class AddDeprecatedArgumentTest(unittest.TestCase): method setUp (line 302) | def setUp(self): method _call (line 305) | def _call(self, argument_name, nargs): method test_warning_no_arg (line 309) | def test_warning_no_arg(self): method test_warning_with_arg (line 317) | def test_warning_with_arg(self): method test_help (line 325) | def test_help(self): method test_set_constant (line 335) | def test_set_constant(self): method test_tuple_constant (line 343) | def test_tuple_constant(self): method _test_constant_common (line 351) | def _test_constant_common(self, typ): class EnforceLeValidity (line 360) | class EnforceLeValidity(unittest.TestCase): method _call (line 362) | def _call(self, domain): method test_sanity (line 366) | def test_sanity(self): method test_invalid_chars (line 369) | def test_invalid_chars(self): method test_leading_hyphen (line 373) | def test_leading_hyphen(self): method test_trailing_hyphen (line 377) | def test_trailing_hyphen(self): method test_one_label (line 381) | def test_one_label(self): method test_valid_domain (line 384) | def test_valid_domain(self): method test_input_with_scheme (line 387) | def test_input_with_scheme(self): method test_valid_input_with_scheme_name (line 391) | def test_valid_input_with_scheme_name(self): class EnforceDomainSanityTest (line 395) | class EnforceDomainSanityTest(unittest.TestCase): method _call (line 398) | def _call(self, domain): method test_nonascii_str (line 402) | def test_nonascii_str(self): method test_nonascii_unicode (line 406) | def test_nonascii_unicode(self): method test_too_long (line 410) | def test_too_long(self): method test_not_too_long (line 415) | def test_not_too_long(self): method test_empty_label (line 419) | def test_empty_label(self): method test_empty_trailing_label (line 424) | def test_empty_trailing_label(self): method test_long_label_1 (line 429) | def test_long_label_1(self): method test_long_label_2 (line 434) | def test_long_label_2(self): method test_not_long_label (line 439) | def test_not_long_label(self): method test_empty_domain (line 443) | def test_empty_domain(self): method test_punycode_ok (line 448) | def test_punycode_ok(self): class IsWildcardDomainTest (line 454) | class IsWildcardDomainTest(unittest.TestCase): method setUp (line 457) | def setUp(self): method _call (line 461) | def _call(self, domain): method test_no_wildcard (line 465) | def test_no_wildcard(self): method test_wildcard (line 469) | def test_wildcard(self): class OsInfoTest (line 474) | class OsInfoTest(unittest.TestCase): method test_systemd_os_release_like (line 479) | def test_systemd_os_release_like(self, m_distro): method test_get_os_info_ua (line 488) | def test_get_os_info_ua(self, m_distro): method test_get_os_info (line 503) | def test_get_os_info(self, m_distro): method test_non_systemd_os_info (line 514) | def test_non_systemd_os_info(self, popen_mock): method test_python_os_info_notfound (line 544) | def test_python_os_info_notfound(self, m_distro): method test_python_os_info_custom (line 551) | def test_python_os_info_custom(self, m_distro): class AtexitRegisterTest (line 557) | class AtexitRegisterTest(unittest.TestCase): method setUp (line 559) | def setUp(self): method _call (line 565) | def _call(cls, *args, **kwargs): method test_called (line 569) | def test_called(self): method test_not_called (line 573) | def test_not_called(self): method _test_common (line 577) | def _test_common(self, initial_pid):