From 6ac5c55edcf7548cb52beffab096d717cb5e46bd Mon Sep 17 00:00:00 2001 From: sebres Date: Fri, 24 Mar 2017 17:35:41 +0100 Subject: [PATCH] the sequence in args-dict is currently undefined (so can be 1st argument with `?` instead of `&`) --- fail2ban/tests/fail2banregextestcase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fail2ban/tests/fail2banregextestcase.py b/fail2ban/tests/fail2banregextestcase.py index d865b34d..8bfedad1 100644 --- a/fail2ban/tests/fail2banregextestcase.py +++ b/fail2ban/tests/fail2banregextestcase.py @@ -276,7 +276,8 @@ class Fail2banRegexTest(LogCaptureTestCase): ) self.assertTrue(fail2banRegex.start(args)) self.assertLogged('Lines: 4 lines, 0 ignored, 2 matched, 2 missed') - self.assertLogged("&flags=m") + # the sequence in args-dict is currently undefined (so can be 1st argument) + self.assertLogged("&flags=m", "?flags=m") def testSinglelineWithNLinContent(self): #