diff options
| author | J08nY | 2017-07-28 15:25:57 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-28 15:26:35 +0200 |
| commit | 84b94dfcc84c9f9e1a69734a3005637daee77cb3 (patch) | |
| tree | e84aa441880b9fad4d9fc8d672cda9fcd3b331f3 /src/mailman_pgp/pgp/tests/test_inline.py | |
| parent | f48c5d7f60e73593f347b346cdf5caedf0c05628 (diff) | |
| download | mailman-pgp-84b94dfcc84c9f9e1a69734a3005637daee77cb3.tar.gz mailman-pgp-84b94dfcc84c9f9e1a69734a3005637daee77cb3.tar.zst mailman-pgp-84b94dfcc84c9f9e1a69734a3005637daee77cb3.zip | |
Diffstat (limited to 'src/mailman_pgp/pgp/tests/test_inline.py')
| -rw-r--r-- | src/mailman_pgp/pgp/tests/test_inline.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mailman_pgp/pgp/tests/test_inline.py b/src/mailman_pgp/pgp/tests/test_inline.py index e2fccb7..4009a4b 100644 --- a/src/mailman_pgp/pgp/tests/test_inline.py +++ b/src/mailman_pgp/pgp/tests/test_inline.py @@ -20,7 +20,7 @@ from parameterized import parameterized from mailman_pgp.pgp.inline import InlineWrapper -from mailman_pgp.pgp.tests.base import load_key, load_message, WrapperTestCase +from mailman_pgp.testing.pgp import load_key, load_message, WrapperTestCase class InlineWrapperTestCase(WrapperTestCase): @@ -181,6 +181,10 @@ class TestKeys(InlineWrapperTestCase): (load_message('clear_multipart.eml'), False), (load_message('inline_cleartext_signed.eml'), + False), + (load_message('inline_privkey_invalid.eml'), + False), + (load_message('inline_pubkey_invalid.eml'), False) ]) def test_has_keys(self, message, has_keys): @@ -190,7 +194,11 @@ class TestKeys(InlineWrapperTestCase): (load_message('inline_privkey.eml'), [load_key('rsa_1024.priv.asc')]), (load_message('inline_pubkey.eml'), - [load_key('rsa_1024.pub.asc')]) + [load_key('rsa_1024.pub.asc')]), + (load_message('inline_privkey_invalid.eml'), + []), + (load_message('inline_pubkey_invalid.eml'), + []) ]) def test_keys(self, message, keys): self.keys(message, keys) |
