From 04f6ee06a0b14ac8dc7e00493aec26905f0fe35a Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Fri, 18 Oct 2024 18:51:54 +0000 Subject: [PATCH] tests: resign when testing pure signing --- test/test_milter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_milter.py b/test/test_milter.py index 8c9a49d..b585cbb 100644 --- a/test/test_milter.py +++ b/test/test_milter.py @@ -153,6 +153,11 @@ def test_milter_mode_s(run_miltertest): assert res['headers'][1][0] == 'ARC-Message-Signature' assert res['headers'][2] == ['ARC-Authentication-Results', ' i=1; example.com; arc=none smtp.remote-ip=127.0.0.1'] + res = run_miltertest(res['headers']) + assert len(res['headers']) == 3 + assert 'cv=pass' in res['headers'][0][1] + assert res['headers'][2] == ['ARC-Authentication-Results', ' i=2; example.com; arc=pass smtp.remote-ip=127.0.0.1'] + def test_milter_mode_v(run_miltertest): """Verify mode"""