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: unittest.case.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 = [{'network': '195.178.86.0-195.178.87.255', 'netname': 'MUNI-01', 'resolved_abuses': ['abuse@muni.cz'], 'source': 'negistry', 'type': 'ipv4', 'id': 1}, {'network': '147.251.0.0-147.251.255.255', 'netname': 'MUNI-02', 'resolved_abuses': ['abuse@muni.cz'], 'source': 'negistry', 'type': 'ipv4', 'id': 2}, {'network': '2001:718:800:5::/64', 'netname': 'MUNI-03', 'resolved_abuses': ['abuse@muni.cz'], 'source': 'negistry', 'type': 'ipv6', 'id': 3}, {'network': '195.179.86.0-195.179.87.255', 'netname': 'CESNET-01', 'resolved_abuses': ['abuse@cesnet.cz'], 'source': 'negistry', 'type': 'ipv4', 'id': 4}, {'network': '195.179.0.0-195.179.255.255', 'netname': 'CESNET-00', 'resolved_abuses': ['abuse@cesnet.cz'], 'source': 'negistry', 'type': 'ipv4', 'id': 5}, {'network': '147.252.0.0-147.252.255.255', 'netname': 'CESNET-02', 'resolved_abuses': ['abuse@cesnet.cz'], 'source': 'negistry', 'type': 'ipv4', 'id': 6}, {'network': '2001:718:1:6::/64', 'netname': 'CESNET-03', 'resolved_abuses': ['abuse@cesnet.cz'], 'source': 'negistry', 'type': 'ipv6', 'id': 7}]
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