diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2014-12-24 14:24:24 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2014-12-24 14:32:23 +0100 |
commit | 8af6ecfe31a7767f1d76f36581b01ddd26fb3220 (patch) | |
tree | a5cf60c5de6a34843fceb23895473cbb25c80fa2 /test/test_wlp.py | |
parent | 45552a9cb1ac5433fd2010d1736b41a3393b9b6b (diff) | |
download | pygn-8af6ecfe31a7767f1d76f36581b01ddd26fb3220.tar.gz |
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
Diffstat (limited to 'test/test_wlp.py')
-rwxr-xr-x | test/test_wlp.py | 11 |
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 |