diff options
| author | J08nY | 2017-07-17 17:44:59 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-17 17:44:59 +0200 |
| commit | 603c4b1acdbbb512056a0caaa76ee56b118bcd49 (patch) | |
| tree | b2aea3aad6e77191292701d10cb0abbe7522dcb8 /src/mailman_pgp/commands | |
| parent | bc396ca1623c885cd6df4ab49bcccf23880a29c8 (diff) | |
| download | mailman-pgp-603c4b1acdbbb512056a0caaa76ee56b118bcd49.tar.gz mailman-pgp-603c4b1acdbbb512056a0caaa76ee56b118bcd49.tar.zst mailman-pgp-603c4b1acdbbb512056a0caaa76ee56b118bcd49.zip | |
Diffstat (limited to 'src/mailman_pgp/commands')
| -rw-r--r-- | src/mailman_pgp/commands/tests/test_key.py | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/mailman_pgp/commands/tests/test_key.py b/src/mailman_pgp/commands/tests/test_key.py index a9343b3..83bf49e 100644 --- a/src/mailman_pgp/commands/tests/test_key.py +++ b/src/mailman_pgp/commands/tests/test_key.py @@ -37,8 +37,8 @@ from mailman_pgp.pgp.mime import MIMEWrapper from mailman_pgp.pgp.tests.base import load_key from mailman_pgp.pgp.wrapper import PGPWrapper from mailman_pgp.testing.layers import PGPConfigLayer -from mailman_pgp.workflows.pubkey import CONFIRM_REQUEST from mailman_pgp.workflows.key_change import CHANGE_CONFIRM_REQUEST +from mailman_pgp.workflows.pubkey import CONFIRM_REQUEST from mailman_pgp.workflows.subscription import OpenSubscriptionPolicy @@ -143,7 +143,8 @@ class TestPreSubscription(unittest.TestCase): self.assertFalse(pgp_address.key_confirmed) items = get_queue_messages('virgin', expected_count=2) - if items[0].msg['Subject'] == 'The results of your email commands': + if items[0].msg[ + 'Subject'] == 'The results of your email commands': # pragma: no cover results = items[0].msg confirm_request = items[1].msg else: @@ -186,7 +187,8 @@ class TestPreSubscription(unittest.TestCase): self.assertFalse(pgp_address.key_confirmed) items = get_queue_messages('virgin', expected_count=2) - if items[0].msg['Subject'] == 'The results of your email commands': + if items[0].msg[ + 'Subject'] == 'The results of your email commands': # pragma: no cover results = items[0].msg confirm_request = items[1].msg else: @@ -574,7 +576,8 @@ class TestAfterSubscription(unittest.TestCase): make_testable_runner(CommandRunner, 'command').run() items = get_queue_messages('virgin', expected_count=2) - if items[0].msg['Subject'] == 'The results of your email commands': + if items[0].msg[ + 'Subject'] == 'The results of your email commands': # pragma: no cover results = items[0].msg confirm_request = items[1].msg else: @@ -610,7 +613,8 @@ class TestAfterSubscription(unittest.TestCase): make_testable_runner(CommandRunner, 'command').run() items = get_queue_messages('virgin', expected_count=2) - if items[0].msg['Subject'] == 'The results of your email commands': + if items[0].msg[ + 'Subject'] == 'The results of your email commands': # pragma: no cover results = items[0].msg confirm_request = items[1].msg else: @@ -644,7 +648,8 @@ class TestAfterSubscription(unittest.TestCase): make_testable_runner(CommandRunner, 'command').run() items = get_queue_messages('virgin', expected_count=2) - if items[0].msg['Subject'] == 'The results of your email commands': + if items[0].msg[ + 'Subject'] == 'The results of your email commands': # pragma: no cover confirm_request = items[1].msg else: confirm_request = items[0].msg @@ -760,7 +765,8 @@ class TestGeneral(unittest.TestCase): listid='test.example.com') make_testable_runner(CommandRunner, 'command').run() items = get_queue_messages('virgin', expected_count=2) - if items[0].msg['Subject'] == 'The results of your email commands': + if items[0].msg[ + 'Subject'] == 'The results of your email commands': # pragma: no cover pubkey_message = items[1].msg else: pubkey_message = items[0].msg |
