about summary refs log tree commit diff
path: root/tst/test_check.py
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-06-20 16:43:30 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-06-20 17:54:35 +0900
commitb102f8e660c40f074419a03c7b0615b5cbead0bb (patch)
treefaddefbfc4b806f59a66f1ae22ceb9f16aecee3f /tst/test_check.py
parent01b0e90c621606071e20534c93f5299cbfcacda3 (diff)
downloadscadere-b102f8e660c40f074419a03c7b0615b5cbead0bb.tar.gz
Add Last-Modified header to HTTP responses
Diffstat (limited to 'tst/test_check.py')
-rw-r--r--tst/test_check.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tst/test_check.py b/tst/test_check.py
index b07259f..aeb4a9e 100644
--- a/tst/test_check.py
+++ b/tst/test_check.py
@@ -60,13 +60,13 @@ async def test_check(domain, ca_name, not_after, after, trust_ca):
         summary = await get_cert_summary((domain, port), after,
                                          ca if trust_ca else None)
         if not trust_ca:
-            assert summary[0] is None
+            assert summary[1] is None
             assert 'self-signed certificate' in summary[5]
         elif not_after == SECONDS_AGO:
-            assert summary[0] is None
+            assert summary[1] is None
             assert 'certificate has expired' in summary[5]
         elif not printable(ca_name):
-            assert summary[0] is None
+            assert summary[1] is None
             assert 'control character' in summary[5]
         elif not_after > after:
             assert summary is None