aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/commands/tests/test_key.py
diff options
context:
space:
mode:
authorJ08nY2017-07-17 19:03:08 +0200
committerJ08nY2017-07-17 19:03:08 +0200
commit8fe73c6364c873e1bd52286353c3f79a4486127a (patch)
treeb6b51769fb2f45150a83be7d7231f60ed9b6b88a /src/mailman_pgp/commands/tests/test_key.py
parent8de6bac71e3966d89523dbdb4449efe86af3586f (diff)
downloadmailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.tar.gz
mailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.tar.zst
mailman-pgp-8fe73c6364c873e1bd52286353c3f79a4486127a.zip
Diffstat (limited to 'src/mailman_pgp/commands/tests/test_key.py')
-rw-r--r--src/mailman_pgp/commands/tests/test_key.py24
1 files changed, 12 insertions, 12 deletions
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