Assert result string in test_prompt_for_authentication

This commit is contained in:
Devesh Kumar Singh 2020-05-17 01:10:31 +05:30
parent a833914387
commit 4ecd7ecbc7
1 changed files with 3 additions and 2 deletions

View File

@ -242,8 +242,9 @@ def test_prompt_for_authentication(script, data, cert_factory):
result = script.pip('install', "--index-url", url,
"--cert", cert_path, "--client-cert", cert_path,
'simple', expect_error=True)
print(result)
assert 'User for {}:{}'.format(server.host, server.port) in result.stdout
assert 'User for {}:{}'.format(server.host, server.port) in \
result.stdout, str(result)
def test_do_not_prompt_for_authentication(script, data, cert_factory):