aboutsummaryrefslogtreecommitdiffstats
path: root/test_archivemail
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2010-07-31 17:08:06 +0200
committerNikolaus Schulz <microschulz@web.de>2010-07-31 20:49:30 +0200
commit0921a1c91a77a4a3450daef6a02e2c44b5894cec (patch)
tree937f76fe40e255a813a0f1fd5f6f38d85810d7fd /test_archivemail
parent40ba265fde06152de837ed0dc5ee916543f376fc (diff)
downloadarchivemail-0921a1c91a77a4a3450daef6a02e2c44b5894cec.tar.gz
archivemail-0921a1c91a77a4a3450daef6a02e2c44b5894cec.tar.bz2
archivemail-0921a1c91a77a4a3450daef6a02e2c44b5894cec.zip
test suite: replace some plain assertions with TestCase.assertEqual()
Diffstat (limited to 'test_archivemail')
-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"""