def generate_client_credentials(cluster_name, public_key, verify_code):

    prompts = []
    prompts += expect('Enter a name for this cluster:', cluster_name)
    prompts += expect("Input the server's public key:", public_key)
    prompts += expect("Input the server verify code: ", verify_code)

    with expecting(prompts):
        output = run('cstar_perf_client --get-credentials')

    lines = output.split('\n')
    client_public_key = [line for line in lines if line.startswith("Your public key is")][0]
    fab.run("echo '{}' > ~/credentials.txt".format(client_public_key))
Password prompt lines should include the user/host in question
dataset/ETHPy150Open datastax/cstar_perf/tool/cstar_perf/tool/fab_deploy.py/generate_client_credentials--crossover with--dataset/ETHPy150Open fabric/fabric/tests/test_network.py/TestNetwork.test_password_prompt_displays_host_string