aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/tests/test_inline.py
diff options
context:
space:
mode:
authorJ08nY2017-07-31 03:37:51 +0200
committerJ08nY2017-07-31 03:37:51 +0200
commit9727be03c49d0bf6b9c2f28e125fc68147602161 (patch)
treec4a5e90bac518b611e0619b2c4d8d576d31bf9f4 /src/mailman_pgp/pgp/tests/test_inline.py
parenta07fe54b768359360bbcd84ea04dfe204637849d (diff)
downloadmailman-pgp-9727be03c49d0bf6b9c2f28e125fc68147602161.tar.gz
mailman-pgp-9727be03c49d0bf6b9c2f28e125fc68147602161.tar.zst
mailman-pgp-9727be03c49d0bf6b9c2f28e125fc68147602161.zip
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')]),