|
|
@ -104,11 +104,11 @@ class StatusExtendedCymruInfo(unittest.TestCase):
|
|
|
|
self.assertTrue(self.__banManager.addBanTicket(ticket))
|
|
|
|
self.assertTrue(self.__banManager.addBanTicket(ticket))
|
|
|
|
cymru_info = self.__banManager.getBanListExtendedCymruInfo()
|
|
|
|
cymru_info = self.__banManager.getBanListExtendedCymruInfo()
|
|
|
|
if "assertDictEqual" in dir(self):
|
|
|
|
if "assertDictEqual" in dir(self):
|
|
|
|
self.assertDictEqual(cymru_info, {"asn": [self.__asn, "nxdomain"],
|
|
|
|
self.assertDictEqual(cymru_info, {"asn": ["nxdomain"],
|
|
|
|
"country": [self.__country, "nxdomain"],
|
|
|
|
"country": ["nxdomain"],
|
|
|
|
"rir": [self.__rir, "nxdomain"]})
|
|
|
|
"rir": ["nxdomain"]})
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# Python 2.6 does not support assertDictEqual()
|
|
|
|
# Python 2.6 does not support assertDictEqual()
|
|
|
|
self.assertEqual(cymru_info["asn"], [self.__asn, "nxdomain"])
|
|
|
|
self.assertEqual(cymru_info["asn"], ["nxdomain"])
|
|
|
|
self.assertEqual(cymru_info["country"], [self.__country, "nxdomain"])
|
|
|
|
self.assertEqual(cymru_info["country"], ["nxdomain"])
|
|
|
|
self.assertEqual(cymru_info["rir"], [self.__rir, "nxdomain"])
|
|
|
|
self.assertEqual(cymru_info["rir"], ["nxdomain"])
|
|
|
|