def test_interfaces_ipv4_addresses(): from fabtools.network import interfaces from fabtools.network import address for interface in interfaces(): ipv4_address = address(interface) assert is_valid_ipv4_address(ipv4_address)
def test_loopback_interface_address(): from fabtools.network import address assert address('lo') == '127.0.0.1'