diff options
Diffstat (limited to 'src/mailman_pgp/commands/tests/test_key.py')
| -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 |
