diff options
Diffstat (limited to 'src/mailman_pgp/runners')
| -rw-r--r-- | src/mailman_pgp/runners/tests/test_incoming.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman_pgp/runners/tests/test_incoming.py b/src/mailman_pgp/runners/tests/test_incoming.py index d06bb2b..0a37b05 100644 --- a/src/mailman_pgp/runners/tests/test_incoming.py +++ b/src/mailman_pgp/runners/tests/test_incoming.py @@ -82,7 +82,7 @@ To: ordinary@example.com create_list('no-key@example.com', style_name='pgp-default') msg = mfs("""\ -From: anne@example.com +From: RSA-1024b@example.org To: no-key@example.com Some text. @@ -90,10 +90,11 @@ Some text. wrapped = PGPWrapper(msg) encrypted = wrapped.encrypt(self.pgp_list.pubkey) - msgdata = dict(listid='no-key.example.com') mm_config.switchboards['in'].enqueue(encrypted, msgdata) - self.runner.run() + runner = make_testable_runner(IncomingRunner, 'in', + lambda runner: True) + runner.run() # Expect the message still there. Waiting for list key. get_queue_messages('in', expected_count=1) |
