mentat.plugin.enricher.test_whois module¶
Unit test module for testing the mentat.plugin.enricher.whois
module.
-
class
mentat.plugin.enricher.test_whois.
TestMentatWhoisEnricherPlugin
(methodName='runTest')[source]¶ Bases:
mentat.plugin.enricher.testsuite.MentatEnricherPluginTestCase
Unit test class for testing the
mentat.plugin.enricher.whois.WhoisEnricherPlugin
class.-
networks_raw
= [{'id': 1, 'source': 'negistry', 'netname': 'MUNI-01', 'network': '195.178.86.0-195.178.87.255', 'type': 'ipv4', 'resolved_abuses': ['abuse@muni.cz']}, {'id': 2, 'source': 'negistry', 'netname': 'MUNI-02', 'network': '147.251.0.0-147.251.255.255', 'type': 'ipv4', 'resolved_abuses': ['abuse@muni.cz']}, {'id': 3, 'source': 'negistry', 'netname': 'MUNI-03', 'network': '2001:718:800:5::/64', 'type': 'ipv6', 'resolved_abuses': ['abuse@muni.cz']}, {'id': 4, 'source': 'negistry', 'netname': 'CESNET-01', 'network': '195.179.86.0-195.179.87.255', 'type': 'ipv4', 'resolved_abuses': ['abuse@cesnet.cz']}, {'id': 5, 'source': 'negistry', 'netname': 'CESNET-00', 'network': '195.179.0.0-195.179.255.255', 'type': 'ipv4', 'resolved_abuses': ['abuse@cesnet.cz']}, {'id': 6, 'source': 'negistry', 'netname': 'CESNET-02', 'network': '147.252.0.0-147.252.255.255', 'type': 'ipv4', 'resolved_abuses': ['abuse@cesnet.cz']}, {'id': 7, 'source': 'negistry', 'netname': 'CESNET-03', 'network': '2001:718:1:6::/64', 'type': 'ipv6', 'resolved_abuses': ['abuse@cesnet.cz']}]¶
-