aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_pyg.py4
-rw-r--r--test/whitelist-pygn2m3
2 files changed, 5 insertions, 2 deletions
diff --git a/test/test_pyg.py b/test/test_pyg.py
index 7a4e48a..6044520 100644
--- a/test/test_pyg.py
+++ b/test/test_pyg.py
@@ -30,7 +30,7 @@ one line test
def test_m2n(self):
with open('examples/mail') as in_mail:
- pid = subprocess.Popen(['python', 'pygm2n', '-Tv', '-n', 'pyg.test'],
+ pid = subprocess.Popen([sys.executable, 'src/mail2news.py', '-Tv', '-n', 'pyg.test'],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
universal_newlines=True)
@@ -61,7 +61,7 @@ Resent-Sender: sender@example.com
def test_n2m(self):
with open('examples/articletest.accepted') as in_mail:
- pid = subprocess.Popen(['python', 'pygn2m', '-Tvt', 'test@example.com',
+ pid = subprocess.Popen([sys.executable, 'src/news2mail.py', '-Tvt', 'test@example.com',
'-s', 'sender@example.com',
'-w', 'examples/whitelist.example'],
stdin=subprocess.PIPE,
diff --git a/test/whitelist-pygn2m b/test/whitelist-pygn2m
new file mode 100644
index 0000000..33044bc
--- /dev/null
+++ b/test/whitelist-pygn2m
@@ -0,0 +1,3 @@
+<ceplm@seznam.cz> {
+ From: = 'ceplm@seznam.cz'
+}