From 0203bed0c46e1c890afd6910119b5264b22d101c Mon Sep 17 00:00:00 2001 From: Paul Rodger Date: Fri, 12 Apr 2002 14:46:09 +0000 Subject: Added docbook documentation from which we can generate a manpage. --- test_archivemail.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test_archivemail.py') diff --git a/test_archivemail.py b/test_archivemail.py index 56ca635..adde027 100755 --- a/test_archivemail.py +++ b/test_archivemail.py @@ -203,6 +203,7 @@ class TestMboxWrite(unittest.TestCase): if os.path.exists(name): os.remove(name) +########## options class testing ################# class TestOptionDefaults(unittest.TestCase): def testVerbose(self): @@ -222,8 +223,7 @@ class TestOptionDefaults(unittest.TestCase): self.assertEqual(archivemail.options.quiet, 0) -########## generic routine testing ################# - +########## archivemail.is_too_old() unit testing ################# class TestIsTooOld(unittest.TestCase): def testVeryOld(self): @@ -262,6 +262,7 @@ class TestIsTooOld(unittest.TestCase): time_msg = time.time() + (minutes * 60) assert(not archivemail.is_too_old(time_message=time_msg, max_days=1)) +################ archivemail.choose_temp_dir() unit testing ############# class TestChooseTempDir(unittest.TestCase): def setUp(self): @@ -460,7 +461,9 @@ class TestArchiveMboxNew(unittest.TestCase): if os.path.exists(name): os.remove(name) - +# +# Test the file mode (permissions) of the original mailbox after archival +# class TestArchiveMboxMode(unittest.TestCase): def setUp(self): archivemail.options.quiet = 1 -- cgit v1.2.3