aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest_archivemail8
1 files changed, 4 insertions, 4 deletions
diff --git a/test_archivemail b/test_archivemail
index 9d015cc..35cef4d 100755
--- a/test_archivemail
+++ b/test_archivemail
@@ -420,19 +420,19 @@ class TestOptionParser(unittest.TestCase):
"""--suffix and -s options are parsed correctly"""
for suffix in ("_static_", "_%B_%Y", "-%Y-%m-%d"):
archivemail.options.parse_args(["--suffix="+suffix], "")
- assert archivemail.options.archive_suffix == suffix
+ self.assertEqual(archivemail.options.archive_suffix, suffix)
archivemail.options.suffix = None
archivemail.options.parse_args(["-s", suffix], "")
- assert archivemail.options.archive_suffix == suffix
+ self.assertEqual(archivemail.options.archive_suffix, suffix)
def testOptionPrefix(self):
"""--prefix and -p options are parsed correctly"""
for prefix in ("_static_", "_%B_%Y", "-%Y-%m-%d"):
archivemail.options.parse_args(["--prefix="+prefix], "")
- assert archivemail.options.archive_prefix == prefix
+ self.assertEqual(archivemail.options.archive_prefix, prefix)
archivemail.options.prefix = None
archivemail.options.parse_args(["-p", prefix], "")
- assert archivemail.options.archive_prefix == prefix
+ self.assertEqual(archivemail.options.archive_prefix, prefix)
def testOptionDryrun(self):
"""--dry-run option is parsed correctly"""