summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2001-12-19 07:07:20 +0000
committerbwarsaw2001-12-19 07:07:20 +0000
commit331ffceb309e76d3a0d01144e40421b08b1e7692 (patch)
tree94a0d6161cc60599e2c585ba020f4135e6054337
parentbf3ca3f221946a4581f96afb5bbfbce2c272a896 (diff)
downloadmailman-331ffceb309e76d3a0d01144e40421b08b1e7692.tar.gz
mailman-331ffceb309e76d3a0d01144e40421b08b1e7692.tar.zst
mailman-331ffceb309e76d3a0d01144e40421b08b1e7692.zip
-rw-r--r--tests/test_handlers.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_handlers.py b/tests/test_handlers.py
index 139a56625..b0485c2fe 100644
--- a/tests/test_handlers.py
+++ b/tests/test_handlers.py
@@ -526,8 +526,8 @@ Errors-To: bsystem@dom.ain
""", Message.Message)
CookHeaders.process(self._mlist, msg, {})
- eq(msg['sender'], '_xtest-admin@dom.ain')
- eq(msg['errors-to'], '_xtest-admin@dom.ain')
+ eq(msg['sender'], '_xtest-bounces@dom.ain')
+ eq(msg['errors-to'], '_xtest-bounces@dom.ain')
def test_xbeenthere(self):
msg = email.message_from_string("""\
@@ -756,7 +756,12 @@ From: aperson@dom.ain
From: aperson@dom.ain
""", Message.Message)
- CookHeaders.process(self._mlist, msg, {})
+ oldval = mm_cfg.DEFAULT_URL_HOST
+ mm_cfg.DEFAULT_URL_HOST = 'www.dom.ain'
+ try:
+ CookHeaders.process(self._mlist, msg, {})
+ finally:
+ mm_cfg.DEFAULT_URL_HOST = oldval
eq(msg['list-id'], '<_xtest.dom.ain>')
eq(msg['list-help'], '<mailto:_xtest-request@dom.ain?subject=help>')
eq(msg['list-unsubscribe'],
@@ -786,7 +791,6 @@ From: aperson@dom.ain
'<http://www.dom.ain/mailman/listinfo/_xtest>,'
'\n\t<mailto:_xtest-request@dom.ain?subject=subscribe>')
eq(msg['list-post'], '<mailto:_xtest@dom.ain>')
- eq(msg['list-archive'], '<http://www.dom.ain/pipermail/_xtest>')