mentat.services.test_whois module

Unit test module for testing the mentat.services.whois module.

class mentat.services.test_whois.TestMentatWhois(methodName='runTest')[source]

Bases: TestCase

Unit test module for testing the mentat.services.whois module.

disabletest_03_file()[source]

Perform basic operativity tests.

disabletest_04_files()[source]

Perform basic operativity tests.

networks_raw = [{'id': 1, 'source': 'negistry', 'netnames': 'MUNI-01', 'network': '195.178.86.0-195.178.87.255', 'type': 'ipv4', 'resolved_abuses': {'low': ['abuse@muni.cz']}}, {'id': 2, 'source': 'negistry', 'netnames': 'MUNI-02', 'network': '147.251.0.0-147.251.255.255', 'type': 'ipv4', 'resolved_abuses': {'low': ['abuse@muni.cz']}}, {'id': 3, 'source': 'negistry', 'netnames': 'MUNI-03', 'network': '2001:718:800:5::/64', 'type': 'ipv6', 'resolved_abuses': {'low': ['abuse@muni.cz']}}, {'id': 4, 'source': 'negistry', 'netnames': 'CESNET-01', 'network': '195.179.86.0-195.179.87.255', 'type': 'ipv4', 'resolved_abuses': {'low': ['abuse@cesnet.cz']}}, {'id': 5, 'source': 'negistry', 'netnames': 'CESNET-00', 'network': '195.179.0.0-195.179.255.255', 'type': 'ipv4', 'resolved_abuses': {'low': ['abuse@cesnet.cz']}}, {'id': 6, 'source': 'negistry', 'netnames': 'CESNET-02', 'network': '147.252.0.0-147.252.255.255', 'type': 'ipv4', 'resolved_abuses': {'low': ['abuse@cesnet.cz']}}, {'id': 7, 'source': 'negistry', 'netnames': 'CESNET-03', 'network': '2001:718:1:6::/64', 'type': 'ipv6', 'resolved_abuses': {'low': ['abuse@cesnet.cz']}}]
setUp()[source]

Perform unit test case setup.

setup_db()[source]

Setup database before each test.

tearDown()[source]

Perform unit test case teardown.

teardown_db()[source]

Teardown database before each test.

test_01_basic()[source]

Perform basic operativity tests.

test_02_sql()[source]

Perform basic operativity tests.

test_05_service_manager()[source]

Perform basic operativity tests.

verbose = False