mirror of https://github.com/fail2ban/fail2ban
TST: display details of duplicate matches
parent
6a56727669
commit
9a1df3501b
|
@ -106,7 +106,8 @@ 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 - %s:%i %r " %
|
||||
(logFile.filename(), logFile.filelineno(), ret))
|
||||
# Verify timestamp and host as expected
|
||||
failregex, host, time = ret[0]
|
||||
self.assertEqual(host, faildata.get("host", None))
|
||||
|
|
Loading…
Reference in New Issue