def METHOD_NAME(self, bash, hosts):
    expected = hosts.copy()
    # fixtures/_known_hosts_real/spaced  conf
    expected.extend("gee hus #not-a-comment".split())
    # fixtures/_known_hosts_real/known_hosts2
    expected.extend("two two2 two3 two4".split())
    # fixtures/_known_hosts_/spaced  known_hosts
    expected.extend("doo ike".split())
    output = assert_bash_exec(
        bash,
        "unset -v COMPREPLY BASH_COMPLETION_KNOWN_HOSTS_WITH_HOSTFILE; "
        "_known_hosts_real -aF '_known_hosts_real/spaced  conf' ''; "
        r'printf "%s\n" "${COMPREPLY[@]}"',
        want_output=True,
    )
    assert sorted(set(output.strip().split())) == sorted(expected)