From 15d0f522c51657359c2c144d77bc8fa6b3278ac7 Mon Sep 17 00:00:00 2001 From: colm29 Date: Thu, 25 Mar 2021 22:43:14 +0000 Subject: [PATCH] Expand sign timestamp test for different signature digest methods --- tests/test_wsse_signature.py | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/tests/test_wsse_signature.py b/tests/test_wsse_signature.py index 2f3e730eb..921f9e6ba 100644 --- a/tests/test_wsse_signature.py +++ b/tests/test_wsse_signature.py @@ -35,7 +35,16 @@ @skip_if_no_xmlsec -def test_sign_timestamp_if_present(): +@pytest.mark.parametrize("digest_method,expected_digest_href", DIGEST_METHODS_TESTDATA) +@pytest.mark.parametrize( + "signature_method,expected_signature_href", SIGNATURE_METHODS_TESTDATA +) +def test_sign_timestamp_if_present( + digest_method, + signature_method, + expected_digest_href, + expected_signature_href, +): envelope = load_xml( """