TestNetResolveIP

class tests.test_net.TestNetResolveIP(methodName='runTest')[source]

Test cases related to resolve_ips(), resolve_ip() and resolve_ips_multi()

__init__(methodName='runTest')

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

Methods

test_resolve_ip_hiveseed()

Test resolve_ip() returns expected either correct v4 or v6 for hiveseed-fin.privex.io

test_resolve_ip_hiveseed_v4()

Test resolve_ip() returns only v4 for hiveseed-fin.privex.io when version is v4

test_resolve_ip_hiveseed_v6()

Test resolve_ip() returns only v6 for hiveseed-fin.privex.io when version is v6

test_resolve_ip_v4_convert()

Test resolve_ip() returns an IPv6-wrapped IPv4 address for microsoft.com when v4_convert is enabled + v6 version

test_resolve_ips_hiveseed()

Test resolve_ips() returns expected v4 + v6 for hiveseed-fin.privex.io

test_resolve_ips_hiveseed_v4()

Test resolve_ips() returns only v4 for hiveseed-fin.privex.io when version is set to v4

test_resolve_ips_hiveseed_v6()

Test resolve_ips() returns only v6 for hiveseed-fin.privex.io when version is set to v6

test_resolve_ips_ipv4_addr()

Test resolve_ips() returns the same IPv4 address passed to it

test_resolve_ips_ipv4_addr_invalid()

Test resolve_ips() raises AttributeError when version is v4 but an IPv6 address was passed

test_resolve_ips_ipv6_addr()

Test resolve_ips() returns the same IPv6 address passed to it

test_resolve_ips_ipv6_addr_invalid()

Test resolve_ips() raises AttributeError when version is v6 but an IPv4 address was passed

test_resolve_ips_multi_any()

Test resolve_ips_multi() with 2 domains and an IPv4 address

test_resolve_ips_multi_v4()

Test resolve_ips_multi() with 2 domains, an IPv4 address, and an IPv6 address with version v4

test_resolve_ips_multi_v6()

Test resolve_ips_multi() with 2 domains, an IPv4 address, and an IPv6 address with version v6

test_resolve_ips_v4_convert()

Test resolve_ips() returns IPv6-wrapped IPv4 addresses for microsoft.com when v4_convert is enabled + v6 version

test_resolve_ips_v4_convert_false()

Test resolve_ips() returns an empty list for microsoft.com when v6 requested without v4_convert

Attributes

Attributes