From 8af6ecfe31a7767f1d76f36581b01ddd26fb3220 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 24 Dec 2014 14:24:24 +0100 Subject: Mighty cleanup * Use more of the standard methods for OrderedDicts * remove pyginfo module (with SSOT being mail2news module) * remove TODO, INSTALL, and changelog.Debian * all FIXMEs and TODOs are filed as bugs in the issue tracker --- test/test_wlp.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test') 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 -- cgit