changeset 4970:e2793024bd44

test_mailgw.py fixing the MIME-Version and Precedence duplicate headers of testUnknownUser (partly issue2550877)
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 10 Mar 2015 22:04:29 +0100
parents 010ce624b320
children 691fa2ef5347
files test/test_mailgw.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_mailgw.py	Tue Mar 10 21:39:52 2015 +0100
+++ b/test/test_mailgw.py	Tue Mar 10 22:04:29 2015 +0100
@@ -62,7 +62,8 @@
         old = email.message_from_string(old.strip())
 
         # all Roundup-generated messages have "Precedence: bulk"
-        old['Precedence'] = 'bulk'
+        if 'Precedence' not in old:
+            old['Precedence'] = 'bulk'
 
         # don't try to compare the date
         del new['date'], old['date']
@@ -2052,7 +2053,6 @@
 X-Roundup-Name: Roundup issue tracker
 X-Roundup-Loop: hello
 X-Roundup-Version: 1.4.8
-MIME-Version: 1.0
 
 --===============0639262320==
 Content-Type: text/plain; charset="us-ascii"

Roundup Issue Tracker: http://roundup-tracker.org/