mirror of https://github.com/fail2ban/fail2ban
Merge pull request #209 from grooverdan/tst_br
TST: test case for <br> tags in actionpull/205/merge
commit
bcecf085f1
|
@ -87,6 +87,9 @@ class ExecuteAction(unittest.TestCase):
|
||||||
'ABC': "123",
|
'ABC': "123",
|
||||||
'xyz': "890",
|
'xyz': "890",
|
||||||
}
|
}
|
||||||
|
self.assertEqual(
|
||||||
|
self.__action.replaceTag("Text<br>text", aInfo),
|
||||||
|
"Text\ntext")
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.__action.replaceTag("Text <HOST> text", aInfo),
|
self.__action.replaceTag("Text <HOST> text", aInfo),
|
||||||
"Text 192.0.2.0 text")
|
"Text 192.0.2.0 text")
|
||||||
|
|
Loading…
Reference in New Issue