aboutsummaryrefslogtreecommitdiffstats
path: root/wlp_test
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2014-12-15 17:37:40 +0100
committerMatěj Cepl <mcepl@cepl.eu>2014-12-15 17:55:52 +0100
commitf65b8f618ed0b59f0c2c14321bbfa9de8e802169 (patch)
tree372844320f2abac1579636198d36ec3a6e7d34eb /wlp_test
parente3ab39bf39d0ba75f6eb504752ef0ffb4bf4a3b1 (diff)
downloadpyg-f65b8f618ed0b59f0c2c14321bbfa9de8e802169.tar.gz
Add a simple test suite.
And also fix one embarrassing typo in mail2news module. Fixes #1 Fixes #4 Fixes #6
Diffstat (limited to 'wlp_test')
-rwxr-xr-xwlp_test31
1 files changed, 0 insertions, 31 deletions
diff --git a/wlp_test b/wlp_test
deleted file mode 100755
index 5ccea1c..0000000
--- a/wlp_test
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/python
-
-# Script to test if wlp.so works. It should parse confile without errors.
-
-import sys
-import wlp
-
-if(len(sys.argv) == 1):
- wlp.setfilebyname('./pyg.wl')
-else:
- wlp.setfilebyname(sys.argv[1])
-
-# dict is a { ownername : {variable: value}} dictionary of dictionaries
-dict = wlp.mkdict()
-
-try:
- print 'owner: option = value'
-
- for owner in dict.keys():
- options = dict[owner]
- for option in options.keys():
- print '%s: %s = %s' % (owner,option,options[option])
-except (Exception), message:
- print message
-
-
-for k in dict.keys():
- if(dict[k]['From:'] == 'Cosimo Alfarano'):
- print '%s has %s' % (k,dict[k]['From:'])
-
-sys.exit(0)