diff options
| author | J08nY | 2017-07-17 19:03:08 +0200 |
|---|---|---|
| committer | J08nY | 2017-07-17 19:03:08 +0200 |
| commit | 8fe73c6364c873e1bd52286353c3f79a4486127a (patch) | |
| tree | b6b51769fb2f45150a83be7d7231f60ed9b6b88a /src/mailman_pgp/commands | |
| parent | 8de6bac71e3966d89523dbdb4449efe86af3586f (diff) | |
| download | mailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.tar.gz mailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.tar.zst mailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.zip | |
Diffstat (limited to 'src/mailman_pgp/commands')
| -rw-r--r-- | src/mailman_pgp/commands/eml_key.py | 2 | ||||
| -rw-r--r-- | src/mailman_pgp/commands/tests/test_key.py | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py index bb107cf..9ea0384 100644 --- a/src/mailman_pgp/commands/eml_key.py +++ b/src/mailman_pgp/commands/eml_key.py @@ -33,9 +33,9 @@ from mailman_pgp.model.address import PGPAddress from mailman_pgp.model.list import PGPMailingList from mailman_pgp.pgp.mime import MIMEWrapper from mailman_pgp.pgp.wrapper import PGPWrapper -from mailman_pgp.workflows.pubkey import CONFIRM_REQUEST from mailman_pgp.workflows.key_change import (CHANGE_CONFIRM_REQUEST, KeyChangeWorkflow) +from mailman_pgp.workflows.pubkey import CONFIRM_REQUEST def _get_email(msg): diff --git a/src/mailman_pgp/commands/tests/test_key.py b/src/mailman_pgp/commands/tests/test_key.py index 83bf49e..4642bb5 100644 --- a/src/mailman_pgp/commands/tests/test_key.py +++ b/src/mailman_pgp/commands/tests/test_key.py @@ -143,8 +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': # pragma: no cover + if (items[0].msg['Subject'] == + 'The results of your email commands'): # pragma: no cover results = items[0].msg confirm_request = items[1].msg else: @@ -187,8 +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': # pragma: no cover + if (items[0].msg['Subject'] == + 'The results of your email commands'): # pragma: no cover results = items[0].msg confirm_request = items[1].msg else: @@ -576,8 +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': # pragma: no cover + if (items[0].msg['Subject'] == + 'The results of your email commands'): # pragma: no cover results = items[0].msg confirm_request = items[1].msg else: @@ -613,8 +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': # pragma: no cover + if (items[0].msg['Subject'] == + 'The results of your email commands'): # pragma: no cover results = items[0].msg confirm_request = items[1].msg else: @@ -648,8 +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': # pragma: no cover + 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 @@ -765,8 +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': # pragma: no cover + 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 |
