diff options
| author | Barry Warsaw | 2008-12-27 23:26:32 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2008-12-27 23:26:32 -0500 |
| commit | 88af638c21e2b356ebd0d9e045a8d028dfb5aedd (patch) | |
| tree | 9145645c4ae68abc45ffb7900ffebe84625df943 /mailman/queue/docs | |
| parent | 1ffa4c74935a56a3c5de736fab052e33e4ab3d38 (diff) | |
| download | mailman-88af638c21e2b356ebd0d9e045a8d028dfb5aedd.tar.gz mailman-88af638c21e2b356ebd0d9e045a8d028dfb5aedd.tar.zst mailman-88af638c21e2b356ebd0d9e045a8d028dfb5aedd.zip | |
More test reairs.
Diffstat (limited to 'mailman/queue/docs')
| -rw-r--r-- | mailman/queue/docs/command.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mailman/queue/docs/command.txt b/mailman/queue/docs/command.txt index ce4279fff..0b384de01 100644 --- a/mailman/queue/docs/command.txt +++ b/mailman/queue/docs/command.txt @@ -25,7 +25,7 @@ sender. The command can be in the Subject header. ... """) >>> from mailman.inject import inject_message - >>> inject_message(mlist, msg, qdir=config.CMDQUEUE_DIR) + >>> inject_message(mlist, msg, switchboard='command') >>> from mailman.queue.command import CommandRunner >>> from mailman.testing.helpers import make_testable_runner >>> command = make_testable_runner(CommandRunner) @@ -34,11 +34,11 @@ sender. The command can be in the Subject header. And now the response is in the virgin queue. >>> from mailman.queue import Switchboard - >>> virgin_queue = Switchboard(config.VIRGINQUEUE_DIR) + >>> virgin_queue = config.switchboards['virgin'] >>> len(virgin_queue.files) 1 >>> from mailman.testing.helpers import get_queue_messages - >>> item = get_queue_messages(virgin_queue)[0] + >>> item = get_queue_messages('virgin')[0] >>> print item.msg.as_string() Subject: The results of your email commands From: test-bounces@example.com @@ -78,11 +78,11 @@ message is plain text. ... echo foo bar ... """) - >>> inject_message(mlist, msg, qdir=config.CMDQUEUE_DIR) + >>> inject_message(mlist, msg, switchboard='command') >>> command.run() >>> len(virgin_queue.files) 1 - >>> item = get_queue_messages(virgin_queue)[0] + >>> item = get_queue_messages('virgin')[0] >>> print item.msg.as_string() Subject: The results of your email commands From: test-bounces@example.com @@ -121,11 +121,11 @@ at by the command queue. ... echo baz qux ... """) - >>> inject_message(mlist, msg, qdir=config.CMDQUEUE_DIR) + >>> inject_message(mlist, msg, switchboard='command') >>> command.run() >>> len(virgin_queue.files) 1 - >>> item = get_queue_messages(virgin_queue)[0] + >>> item = get_queue_messages('virgin')[0] >>> print item.msg.as_string() Subject: The results of your email commands ... @@ -151,11 +151,11 @@ The 'stop' command is an alias for 'end'. ... echo baz qux ... """) - >>> inject_message(mlist, msg, qdir=config.CMDQUEUE_DIR) + >>> inject_message(mlist, msg, switchboard='command') >>> command.run() >>> len(virgin_queue.files) 1 - >>> item = get_queue_messages(virgin_queue)[0] + >>> item = get_queue_messages('virgin')[0] >>> print item.msg.as_string() Subject: The results of your email commands ... |
