TST/BF: assertIsNotNone replaced with assertNotEqual for python 2.4 compatibility

pull/342/head
Daniel Black 2013-08-28 12:55:21 +10:00
parent 13b4f176ab
commit f2a60daea1
1 changed files with 1 additions and 1 deletions

View File

@ -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)