tests: More verbosity

This commit is contained in:
Lauri Võsandi 2017-05-01 22:53:24 +00:00
parent 86df98a117
commit 60ff382d74
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ def test_cli_setup_authority():
r = requests.get("http://ca.example.lan/api/revoked/",
headers={"Accept":"application/x-pem-file"})
assert r.status_code == 200, "Server responded with %s" % r.text
assert r.status_code == 200, "Server responded with %s, server logs say %s" % (r.text, open("/var/log/certidude.log").read())
assert r.headers.get('content-type') == "application/x-pem-file"
r = client().simulate_get("/api/revoked/")