'Ensure env.host is set during host prompting'

@server()
def test_env_host_set_when_host_prompt_used(self):

    copied_host_string = str(env.host_string)
    fake = Fake('raw_input', callable=True).returns(copied_host_string)
    env.host_string = None
    env.host = None
    with settings(hide('everything'), patched_input(fake)):
        run('ls    /')
    eq_(env.host_string, copied_host_string)
    eq_(env.host, normalize(copied_host_string)[1])
