mirror of https://github.com/fail2ban/fail2ban
TST/BF: assertIsNotNone replaced with assertNotEqual for python 2.4 compatibility
parent
13b4f176ab
commit
f2a60daea1
|
@ -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 New Issue