1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-23 00:25:18 +00:00

tests: More verbosity

This commit is contained in:
Lauri Võsandi 2017-05-01 22:53:24 +00:00
parent 86df98a117
commit 60ff382d74

View File

@ -221,7 +221,7 @@ def test_cli_setup_authority():
r = requests.get("http://ca.example.lan/api/revoked/", r = requests.get("http://ca.example.lan/api/revoked/",
headers={"Accept":"application/x-pem-file"}) 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" assert r.headers.get('content-type') == "application/x-pem-file"
r = client().simulate_get("/api/revoked/") r = client().simulate_get("/api/revoked/")