aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/tests/test_inline.py
diff options
context:
space:
mode:
authorJ08nY2017-08-01 22:53:15 +0200
committerJ08nY2017-08-02 01:35:10 +0200
commitdff7befbc5860f2f78f63ab694ef88d21a53771f (patch)
tree458e8004705eab2ca024da0cd21057cc2f5f56f3 /src/mailman_pgp/pgp/tests/test_inline.py
parent7c0aaf28767e494323557b6cb8fb6500df5822e5 (diff)
downloadmailman-pgp-dff7befbc5860f2f78f63ab694ef88d21a53771f.tar.gz
mailman-pgp-dff7befbc5860f2f78f63ab694ef88d21a53771f.tar.zst
mailman-pgp-dff7befbc5860f2f78f63ab694ef88d21a53771f.zip
Diffstat (limited to 'src/mailman_pgp/pgp/tests/test_inline.py')
-rw-r--r--src/mailman_pgp/pgp/tests/test_inline.py32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/mailman_pgp/pgp/tests/test_inline.py b/src/mailman_pgp/pgp/tests/test_inline.py
index 7f82ab4..b409bee 100644
--- a/src/mailman_pgp/pgp/tests/test_inline.py
+++ b/src/mailman_pgp/pgp/tests/test_inline.py
@@ -20,7 +20,8 @@
from parameterized import parameterized
from mailman_pgp.pgp.inline import InlineWrapper
-from mailman_pgp.testing.pgp import load_key, load_message, WrapperTestCase
+from mailman_pgp.testing.pgp import (load_key, load_message, WrapperTestCase,
+ load_revoc)
class InlineWrapperTestCase(WrapperTestCase):
@@ -219,6 +220,35 @@ class TestKeys(InlineWrapperTestCase):
self.keys(message, keys)
+class TestRevocs(InlineWrapperTestCase):
+ @parameterized.expand([
+ (load_message('inline_revoc.eml'),
+ True),
+ (load_message('inline_revoc_multipart.eml'),
+ True)
+ ])
+ def test_has_revocs(self, message, has_revocs):
+ self.has_revocs(message, has_revocs)
+
+ @parameterized.expand([
+ (load_message('inline_revoc.eml'),
+ True),
+ (load_message('inline_revoc_multipart.eml'),
+ False)
+ ])
+ def test_is_revocs(self, message, is_revocs):
+ self.is_revocs(message, is_revocs)
+
+ @parameterized.expand([
+ (load_message('inline_revoc.eml'),
+ (load_revoc('rsa_1024.revoc.asc'),)),
+ (load_message('inline_revoc_multipart.eml'),
+ (load_revoc('rsa_1024.revoc.asc'),))
+ ])
+ def test_revocs(self, message, revocs):
+ self.revocs(message, revocs)
+
+
class TestCombined(InlineWrapperTestCase):
@parameterized.expand([
(load_message('clear.eml'),