mirror of
https://git.code.sf.net/p/archivemail/code
synced 2024-12-21 23:32:54 +00:00
test suite: replace some plain assertions with TestCase.assertEqual()
This commit is contained in:
parent
40ba265fde
commit
0921a1c91a
1 changed files with 4 additions and 4 deletions
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue