From 09f41e485c533b1e75296906cb7e2bfd1b8c0199 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Sat, 2 Feb 2008 20:07:06 +0000 Subject: [PATCH] - Fixed date values. git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@650 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- testcases/datedetectortestcase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/datedetectortestcase.py b/testcases/datedetectortestcase.py index d657e1ce..43c7528d 100644 --- a/testcases/datedetectortestcase.py +++ b/testcases/datedetectortestcase.py @@ -40,8 +40,8 @@ class DateDetectorTest(unittest.TestCase): def testGetEpochTime(self): log = "1138049999 [sshd] error: PAM: Authentication failure" - date = [2006, 1, 23, 20, 59, 59, 0, 23, 0] - dateUnix = 1138046399.0 + date = [2006, 1, 23, 21, 59, 59, 0, 23, 0] + dateUnix = 1138049999.0 self.assertEqual(self.__datedetector.getTime(log), date) self.assertEqual(self.__datedetector.getUnixTime(log), dateUnix)