test suite: change misleading test case name
TestArchiveMboxPreserveStatus actually doesn't test that the message status is preserved, but that the --preserve-unread option works. Rename it to TestArchiveMboxPreserveUnread.
This commit is contained in:
parent
41da26b655
commit
03bfb88d30
|
@ -731,10 +731,10 @@ class TestArchiveMboxAll(TestCaseInTempdir):
|
||||||
archivemail.options.archive_all = 0
|
archivemail.options.archive_all = 0
|
||||||
super(TestArchiveMboxAll, self).tearDown()
|
super(TestArchiveMboxAll, self).tearDown()
|
||||||
|
|
||||||
class TestArchiveMboxPreserveStatus(TestCaseInTempdir):
|
class TestArchiveMboxPreserveUnread(TestCaseInTempdir):
|
||||||
"""make sure the 'preserve_unread' option works"""
|
"""make sure the 'preserve_unread' option works"""
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestArchiveMboxPreserveStatus, self).setUp()
|
super(TestArchiveMboxPreserveUnread, self).setUp()
|
||||||
archivemail.options.quiet = 1
|
archivemail.options.quiet = 1
|
||||||
archivemail.options.preserve_unread = 1
|
archivemail.options.preserve_unread = 1
|
||||||
|
|
||||||
|
@ -763,7 +763,7 @@ class TestArchiveMboxPreserveStatus(TestCaseInTempdir):
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
archivemail.options.quiet = 0
|
archivemail.options.quiet = 0
|
||||||
archivemail.options.preserve_unread = 0
|
archivemail.options.preserve_unread = 0
|
||||||
super(TestArchiveMboxPreserveStatus, self).tearDown()
|
super(TestArchiveMboxPreserveUnread, self).tearDown()
|
||||||
|
|
||||||
|
|
||||||
class TestArchiveMboxSuffix(unittest.TestCase):
|
class TestArchiveMboxSuffix(unittest.TestCase):
|
||||||
|
|
Loading…
Reference in New Issue