def METHOD_NAME(self, bash, hosts):
    expected = hosts.copy()
    # fixtures/_known_hosts_real/config_include_recursion
    expected.append("recursion")
    # fixtures/_known_hosts_real/.ssh/config_relative_path
    expected.append("relative_path")
    # fixtures/_known_hosts_real/.ssh/config_asterisk_*
    expected.extend("asterisk_1 asterisk_2".split())
    # fixtures/_known_hosts_real/.ssh/config_question_mark
    expected.append("question_mark")
    with bash_env_saved(bash) as bash_env:
        bash_env.write_variable("HOME", "%s/_known_hosts_real" % bash.cwd)
        output = assert_bash_exec(
            bash,
            "unset -v COMPREPLY BASH_COMPLETION_KNOWN_HOSTS_WITH_HOSTFILE;"
            " _known_hosts_real -aF _known_hosts_real/config_include ''; "
            r'printf "%s\n" "${COMPREPLY[@]}"',
            want_output=True,
        )
    assert sorted(set(output.strip().split())) == sorted(expected)