'Passphrase prompt lines should include the user/host in question'

@mock_streams('stderr')
@server(pubkeys=True)
def test_passphrase_prompt_displays_host_string(self):

    env.password = None
    env.no_agent = env.no_keys = True
    env.key_filename = CLIENT_PRIVKEY
    output.everything = False
    with password_response(CLIENT_PRIVKEY_PASSPHRASE, silent=False):
        run('ls    /simple')
    regex = ("^\\[%s\\]    Login    password    for    \\'%s\\':    " % (env.host_string, env.user))
    assert_contains(regex, sys.stderr.getvalue())
