From 295f7b88c92b0c67b1b1d44f0fb9eca29aeb591d Mon Sep 17 00:00:00 2001 From: sebres Date: Mon, 13 Mar 2017 16:21:03 +0100 Subject: [PATCH] increase coverage --- fail2ban/tests/fail2banregextestcase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fail2ban/tests/fail2banregextestcase.py b/fail2ban/tests/fail2banregextestcase.py index 1bac3a5f..0cd0e303 100644 --- a/fail2ban/tests/fail2banregextestcase.py +++ b/fail2ban/tests/fail2banregextestcase.py @@ -286,11 +286,12 @@ class Fail2banRegexTest(LogCaptureTestCase): "-l", "notice", # put down log-level, because of too many debug-messages "--datepattern", "^(?:%a )?%b %d %H:%M:%S(?:\.%f)?(?: %ExY)?", "--debuggex", "--print-all-matched", - Fail2banRegexTest.FILENAME_WRONGCHAR, Fail2banRegexTest.FILTER_SSHD + Fail2banRegexTest.FILENAME_WRONGCHAR, Fail2banRegexTest.FILTER_SSHD, + r"llinco[^\\]" ) self.assertTrue(fail2banRegex.start(args)) self.assertLogged('Error decoding line') - self.assertLogged('Lines: 4 lines, 0 ignored, 2 matched, 2 missed') + self.assertLogged('Lines: 4 lines, 1 ignored, 2 matched, 1 missed') self.assertLogged('https://')