Commit 6d84ef35 authored by Barry Warsaw's avatar Barry Warsaw

Fix a test.

parent 3923739f
......@@ -134,8 +134,17 @@ address, and the other is the results of his email command.
>>> def sortkey(item):
... return item.msg['subject']
>>> messages = sorted(get_queue_messages('virgin'), key=sortkey)
>>> from mailman.interfaces.domain import IDomainManager
>>> from mailman.interfaces.registrar import IRegistrar
>>> registrar = IRegistrar(IDomainManager(config)['example.com'])
>>> for item in messages:
... print 'Subject:', item.msg['subject']
... subject = item.msg['subject']
... print 'Subject:', subject
... if 'confirm' in str(subject):
... token = str(subject).split()[1].strip()
... status = registrar.confirm(token)
... assert status, 'Confirmation failed'
Subject: confirm ...
Subject: The results of your email commands
......@@ -168,7 +177,7 @@ Similarly, to leave a mailing list, the user need only email the -leave or
Message-ID: ...
<BLANKLINE>
- Results:
[email protected] left [email protected]
Dirk Person <[email protected]> left [email protected]
<BLANKLINE>
- Done.
<BLANKLINE>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment