mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
TST/BF: assertIsNotNone replaced with assertNotEqual for python 2.4 compatibility
This commit is contained in:
parent
13b4f176ab
commit
f2a60daea1
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ class DateDetectorTest(unittest.TestCase):
|
|||
|
||||
#[ yoh: on [:6] see in above test
|
||||
logtime = self.__datedetector.getTime(log)
|
||||
self.assertIsNotNone(logtime, "getTime retrieved nothing: failure for %s" % sdate)
|
||||
self.assertNotEqual(logtime, None, "getTime retrieved nothing: failure for %s" % sdate)
|
||||
self.assertEqual(logtime[:6], date[:6], "getTime comparison failure for %s" % sdate)
|
||||
self.assertEqual(self.__datedetector.getUnixTime(log), dateUnix, "getUnixTime failure for %s" % sdate)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue