diff options
| author | J08nY | 2017-07-27 19:23:14 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-27 19:23:14 +0200 |
| commit | 7f7fa136794732d3b50ee2d1d7df73e01c1ff823 (patch) | |
| tree | 11c0ae8af1cf0934eed6d9c68316e757eb3c53bf /src/mailman_pgp/pgp/tests/test_wrapper.py | |
| parent | c401f2c6cc5f0aa4c6de245dcf252d3bbcc920fd (diff) | |
| download | mailman-pgp-7f7fa136794732d3b50ee2d1d7df73e01c1ff823.tar.gz mailman-pgp-7f7fa136794732d3b50ee2d1d7df73e01c1ff823.tar.zst mailman-pgp-7f7fa136794732d3b50ee2d1d7df73e01c1ff823.zip | |
Diffstat (limited to 'src/mailman_pgp/pgp/tests/test_wrapper.py')
| -rw-r--r-- | src/mailman_pgp/pgp/tests/test_wrapper.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mailman_pgp/pgp/tests/test_wrapper.py b/src/mailman_pgp/pgp/tests/test_wrapper.py index 6e8715c..730d068 100644 --- a/src/mailman_pgp/pgp/tests/test_wrapper.py +++ b/src/mailman_pgp/pgp/tests/test_wrapper.py @@ -48,6 +48,22 @@ class TestSigning(PGPWrapperTestCase): def test_is_signed(self, message, signed): self.is_signed(message, signed) + + @parameterized.expand([ + (load_message('inline_signed_multipart.eml'), + True), + (load_message('inline_signed.eml'), + True), + (load_message('mime_signed.eml'), + True), + (load_message('mime_signed_invalid.eml'), + True), + (load_message('clear.eml'), + False) + ]) + def test_has_signature(self, message, has): + self.has_signature(message, has) + @parameterized.expand([ (load_message('clear.eml'), load_key('rsa_1024.priv.asc')), |
