aboutsummaryrefslogtreecommitdiffstats
path: root/test_archivemail
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2010-07-31 17:43:46 +0200
committerNikolaus Schulz <microschulz@web.de>2010-07-31 20:49:30 +0200
commit04bf8eaa23f3b62d471b1389a23310de67d8d1eb (patch)
treeb297696e9de5969d9bf2ff801bb2321f32bc1ecc /test_archivemail
parent0921a1c91a77a4a3450daef6a02e2c44b5894cec (diff)
downloadarchivemail-04bf8eaa23f3b62d471b1389a23310de67d8d1eb.tar.gz
archivemail-04bf8eaa23f3b62d471b1389a23310de67d8d1eb.tar.bz2
archivemail-04bf8eaa23f3b62d471b1389a23310de67d8d1eb.zip
test suite: fix buggy test of --suffix and --prefix option parsing
Diffstat (limited to 'test_archivemail')
-rwxr-xr-xtest_archivemail4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_archivemail b/test_archivemail
index 35cef4d..3e9bf88 100755
--- a/test_archivemail
+++ b/test_archivemail
@@ -421,7 +421,7 @@ class TestOptionParser(unittest.TestCase):
for suffix in ("_static_", "_%B_%Y", "-%Y-%m-%d"):
archivemail.options.parse_args(["--suffix="+suffix], "")
self.assertEqual(archivemail.options.archive_suffix, suffix)
- archivemail.options.suffix = None
+ archivemail.options.archive_suffix = None
archivemail.options.parse_args(["-s", suffix], "")
self.assertEqual(archivemail.options.archive_suffix, suffix)
@@ -430,7 +430,7 @@ class TestOptionParser(unittest.TestCase):
for prefix in ("_static_", "_%B_%Y", "-%Y-%m-%d"):
archivemail.options.parse_args(["--prefix="+prefix], "")
self.assertEqual(archivemail.options.archive_prefix, prefix)
- archivemail.options.prefix = None
+ archivemail.options.archive_prefix = None
archivemail.options.parse_args(["-p", prefix], "")
self.assertEqual(archivemail.options.archive_prefix, prefix)