Commit 09391d78 authored by Simo Sorce's avatar Simo Sorce

Test verification after add_signature

This checks that we can always verify the signatures we produces when
headers are generated.
Signed-off-by: default avatarSimo Sorce <simo@redhat.com>
parent 2f34bb77
......@@ -461,6 +461,8 @@ class TestJWS(unittest.TestCase):
S.add_signature(A6_example['key2'], None,
A6_example['protected2'],
A6_example['header2'])
S.verify(A6_example['key1'])
S.verify(A6_example['key2'])
sig = S.serialize()
S.deserialize(sig, A6_example['key1'])
S.deserialize(A6_serialized, A6_example['key2'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment