From 735c51adaefd245f215aed5381c7d8f7ca8d86ed Mon Sep 17 00:00:00 2001 From: Lee Clemens Date: Fri, 23 Jan 2015 16:18:09 -0500 Subject: [PATCH] fix test of new banManager's instance --- fail2ban/tests/banmanagertestcase.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fail2ban/tests/banmanagertestcase.py b/fail2ban/tests/banmanagertestcase.py index 3f7fe97e..c4dd42cf 100644 --- a/fail2ban/tests/banmanagertestcase.py +++ b/fail2ban/tests/banmanagertestcase.py @@ -104,11 +104,11 @@ class StatusExtendedCymruInfo(unittest.TestCase): self.assertTrue(self.__banManager.addBanTicket(ticket)) cymru_info = self.__banManager.getBanListExtendedCymruInfo() if "assertDictEqual" in dir(self): - self.assertDictEqual(cymru_info, {"asn": [self.__asn, "nxdomain"], - "country": [self.__country, "nxdomain"], - "rir": [self.__rir, "nxdomain"]}) + self.assertDictEqual(cymru_info, {"asn": ["nxdomain"], + "country": ["nxdomain"], + "rir": ["nxdomain"]}) else: # Python 2.6 does not support assertDictEqual() - self.assertEqual(cymru_info["asn"], [self.__asn, "nxdomain"]) - self.assertEqual(cymru_info["country"], [self.__country, "nxdomain"]) - self.assertEqual(cymru_info["rir"], [self.__rir, "nxdomain"]) + self.assertEqual(cymru_info["asn"], ["nxdomain"]) + self.assertEqual(cymru_info["country"], ["nxdomain"]) + self.assertEqual(cymru_info["rir"], ["nxdomain"])