'run/sudo shouldn\'t print [host_string] if env.output_prefix == False'

@mock_streams('both')
@server(pubkeys=True, responses={'oneliner': 'result', 'twoliner': 'result1\nresult2'})
def test_io_should_not_print_prefix_if_ouput_prefix_is_false(self):

    env.password = None
    env.no_agent = env.no_keys = True
    env.key_filename = CLIENT_PRIVKEY
    with password_response((CLIENT_PRIVKEY_PASSPHRASE, PASSWORDS[USER]), silent=False):
        with settings(output_prefix=False):
            run('oneliner')
            run('twoliner')
    expected = ("\n[%(prefix)s]    run:    oneliner\n[%(prefix)s]    Login    password    for    '%(user)s':    \nresult\n[%(prefix)s]    run:    twoliner\nresult1\nresult2\n" % {'prefix': env.host_string, 'user': env.user})
    eq_(expected[1:], sys.stdall.getvalue())
