TST: display details of duplicate matches

pull/336/head
Daniel Black 2013-08-25 20:19:42 +10:00
parent 6a56727669
commit 9a1df3501b
1 changed files with 2 additions and 1 deletions

View File

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