aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2008-09-30 13:20:47 +0200
committerNikolaus Schulz <microschulz@web.de>2010-07-19 01:13:25 +0200
commit0ca3f6ceeeb68f95953ceaeae61b188bf9899f70 (patch)
treeca72371e2083bba4423fc61d9fd0b9eff249b618
parentbf99c6b69d0f4371b4d47ceca5bf525cb28765a3 (diff)
downloadarchivemail-0ca3f6ceeeb68f95953ceaeae61b188bf9899f70.tar.gz
archivemail-0ca3f6ceeeb68f95953ceaeae61b188bf9899f70.tar.bz2
archivemail-0ca3f6ceeeb68f95953ceaeae61b188bf9899f70.zip
test suite: remove duplicate test case for --date option
-rwxr-xr-xtest_archivemail.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/test_archivemail.py b/test_archivemail.py
index c4b1f00..c84930f 100755
--- a/test_archivemail.py
+++ b/test_archivemail.py
@@ -813,41 +813,6 @@ class TestArchiveDryRun(TestCaseInTempdir):
super(TestArchiveDryRun, self).tearDown()
-class TestArchiveDays(TestCaseInTempdir):
- """make sure the 'days' option works"""
- def setUp(self):
- super(TestArchiveDays, self).setUp()
- archivemail.options.quiet = 1
-
- def testOld(self):
- """specifying the 'days' option on an older mailbox"""
- self.mbox_name = make_mbox(messages=3, hours_old=(24 * 12))
- self.copy_name = tempfile.mkstemp()[1]
- shutil.copyfile(self.mbox_name, self.copy_name)
- archivemail.options.days_old_max = 11
- archivemail.archive(self.mbox_name)
- assert(os.path.exists(self.mbox_name))
- self.assertEqual(os.path.getsize(self.mbox_name), 0)
- archive_name = self.mbox_name + "_archive.gz"
- assertEqualContent(archive_name, self.copy_name, zipfirst=True)
-
- def testNew(self):
- """specifying the 'days' option on a newer mailbox"""
- self.mbox_name = make_mbox(messages=3, hours_old=(24 * 10))
- self.copy_name = tempfile.mkstemp()[1]
- shutil.copyfile(self.mbox_name, self.copy_name)
- archivemail.options.days_old_max = 11
- archivemail.archive(self.mbox_name)
- assertEqualContent(self.mbox_name, self.copy_name)
- archive_name = self.mbox_name + "_archive.gz"
- assert(not os.path.exists(archive_name))
-
- def tearDown(self):
- archivemail.options.days_old_max = 180
- archivemail.options.quiet = 0
- super(TestArchiveDays, self).tearDown()
-
-
class TestArchiveDelete(TestCaseInTempdir):
"""make sure the 'delete' option works"""
old_mbox = None