From 0921a1c91a77a4a3450daef6a02e2c44b5894cec Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Sat, 31 Jul 2010 17:08:06 +0200 Subject: test suite: replace some plain assertions with TestCase.assertEqual() --- test_archivemail | 8 ++++---- 1 file 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""" -- cgit v1.2.3