|
|
|
@ -118,7 +118,10 @@ def testSampleRegexsFactory(name):
|
|
|
|
|
self.assertTrue(faildata.get('match', False),
|
|
|
|
|
"Line matched when shouldn't have: %s:%i %r" %
|
|
|
|
|
(logFile.filename(), logFile.filelineno(), line))
|
|
|
|
|
self.assertEqual(len(ret), 1, "Multiple regexs matched")
|
|
|
|
|
self.assertEqual(len(ret), 1,
|
|
|
|
|
"Multiple regexs matched: regexs %s for %s:%i" % (
|
|
|
|
|
",".join(["%i" % a[0] for a in ret]),
|
|
|
|
|
logFile.filename(), logFile.filelineno()))
|
|
|
|
|
# Verify timestamp and host as expected
|
|
|
|
|
failregex, host, time = ret[0]
|
|
|
|
|
self.assertEqual(host, faildata.get("host", None))
|
|
|
|
|