diff --git a/test_archivemail b/test_archivemail index ed033e2..dd68318 100755 --- a/test_archivemail +++ b/test_archivemail @@ -515,8 +515,9 @@ class TestIsTooOld(unittest.TestCase): def testJustOld(self): """with max_days=1, should be true for these dates >= 1 day""" + ctime = time.time() for minutes in range(0, 61): - time_msg = time.time() - (25 * 60 * 60) + (minutes * 60) + time_msg = ctime - (25 * 60 * 60) + (minutes * 60) assert archivemail.is_older_than_days(time_message=time_msg, max_days=1)