aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/tests/test_inline.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/pgp/tests/test_inline.py')
-rw-r--r--src/mailman_pgp/pgp/tests/test_inline.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/tests/test_inline.py b/src/mailman_pgp/pgp/tests/test_inline.py
index 4009a4b..7f82ab4 100644
--- a/src/mailman_pgp/pgp/tests/test_inline.py
+++ b/src/mailman_pgp/pgp/tests/test_inline.py
@@ -77,6 +77,12 @@ class TestSigning(InlineWrapperTestCase):
load_key('rsa_1024.pub.asc')),
(load_message('clear_multipart.eml'),
load_key('ecc_p256.priv.asc'),
+ load_key('ecc_p256.pub.asc')),
+ (load_message('inline_signed.eml'),
+ load_key('ecc_p256.priv.asc'),
+ load_key('ecc_p256.pub.asc')),
+ (load_message('inline_signed_multipart.eml'),
+ load_key('ecc_p256.priv.asc'),
load_key('ecc_p256.pub.asc'))
])
def test_sign_verify(self, message, priv, pub):
@@ -192,6 +198,15 @@ class TestKeys(InlineWrapperTestCase):
@parameterized.expand([
(load_message('inline_privkey.eml'),
+ True),
+ (load_message('inline_pubkey.eml'),
+ True)
+ ])
+ def test_is_keys(self, message, is_keys):
+ self.is_keys(message, is_keys)
+
+ @parameterized.expand([
+ (load_message('inline_privkey.eml'),
[load_key('rsa_1024.priv.asc')]),
(load_message('inline_pubkey.eml'),
[load_key('rsa_1024.pub.asc')]),