aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_wlp.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test_wlp.py b/test/test_wlp.py
index 486fb42..62b2551 100755
--- a/test/test_wlp.py
+++ b/test/test_wlp.py
@@ -8,6 +8,7 @@ import os
import os.path
import subprocess
import re
+import mail2news
def distutils_dir_name(dname):
@@ -52,15 +53,15 @@ Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/1.2.5i
X-Multiline: this header probably broke RFC, but is frequent.
-X-Gateway: pyg The Python Gateway - Mail to News
-"""
+X-Gateway: pyg %s %s
+""" % (mail2news.VERSION, mail2news.DESC)
def test_m2n(self):
with open('examples/mail') as in_mail:
pid = subprocess.Popen(['./pygm2n', '-TV', '-n', 'pyg.test'],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
- out, err = pid.communicate(in_mail.read())
+ out, _ = pid.communicate(in_mail.read())
self.assertEqual(out, self.expected_output)
@@ -78,11 +79,11 @@ Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Trace: pyg.server.tld 960672047 927 192.168.1.2 (10 Jun 2000 21:20:47 GMT)
X-Newsgroups: local.moderated
-X-Gateway: pyg The Python Gateway Script: news2mail mail2news gateway
+X-Gateway: pyg %s %s
X-NNTP-Posting-Host: pyg.server.tld
Resent-From: sender@example.com
Resent-Sender: sender@example.com
-"""
+""" % (mail2news.VERSION, mail2news.DESC)
def test_n2m(self):
env = os.environ