"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fail2ban/tests/actiontestcase.py" between
fail2ban-0.10.5.tar.gz and fail2ban-0.11.1.tar.gz

About:

actiontestcase.py  (fail2ban-0.10.5):actiontestcase.py  (fail2ban-0.11.1)
skipping to change at line 209 skipping to change at line 209
"Text\ntext") "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")
self.assertEqual( self.assertEqual(
self.__action.replaceTag("Text <xyz> text <ABC> ABC", aIn fo), self.__action.replaceTag("Text <xyz> text <ABC> ABC", aIn fo),
"Text 890 text 123 ABC") "Text 890 text 123 ABC")
self.assertEqual( self.assertEqual(
self.__action.replaceTag("<matches>", self.__action.replaceTag("<matches>",
{'matches': "some >char< should \\< be[ escap}ed& \n"}), {'matches': "some >char< should \\< be[ escap}ed& \n"}),
"some \\>char\\< should \\\\\\< be\\[ escap\\}ed\\&\n") "some \\>char\\< should \\\\\\< be\\[ escap\\}ed\\&\\n")
self.assertEqual( self.assertEqual(
self.__action.replaceTag("<ipmatches>", self.__action.replaceTag("<ipmatches>",
{'ipmatches': "some >char< should \\< be[ escap}e d&\n"}), {'ipmatches': "some >char< should \\< be[ escap}e d&\n"}),
"some \\>char\\< should \\\\\\< be\\[ escap\\}ed\\&\n") "some \\>char\\< should \\\\\\< be\\[ escap\\}ed\\&\\n")
self.assertEqual( self.assertEqual(
self.__action.replaceTag("<ipjailmatches>", self.__action.replaceTag("<ipjailmatches>",
{'ipjailmatches': "some >char< should \\< be[ esc {'ipjailmatches': "some >char< should \\< be[ esc
ap}ed&\n"}), ap}ed&\r\n"}),
"some \\>char\\< should \\\\\\< be\\[ escap\\}ed\\&\n") "some \\>char\\< should \\\\\\< be\\[ escap\\}ed\\&\\r\\n
")
# Recursive # Recursive
aInfo["ABC"] = "<xyz>" aInfo["ABC"] = "<xyz>"
self.assertEqual( self.assertEqual(
self.__action.replaceTag("Text <xyz> text <ABC> ABC", aIn fo), self.__action.replaceTag("Text <xyz> text <ABC> ABC", aIn fo),
"Text 890 text 890 ABC") "Text 890 text 890 ABC")
# Callable # Callable
self.assertEqual( self.assertEqual(
self.__action.replaceTag("09 <matches> 11", self.__action.replaceTag("09 <matches> 11",
 End of changes. 3 change blocks. 
5 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)