def test__ping__yields_ipv4_ips(self): params = yield_ping_parameters( {'eth0': ['2001:db8::/64', '192.168.0.1/30']}) self.assertThat(set(params), Equals({ PingParameters(interface='eth0', ip='192.168.0.1'), PingParameters(interface='eth0', ip='192.168.0.2'), }))
def test_ping__yields_ipv4_ips(self): params = yield_ping_parameters( {"eth0": ["2001:db8::/64", "192.168.0.1/30"]}) self.assertThat( set(params), Equals({ PingParameters(interface="eth0", ip="192.168.0.1"), PingParameters(interface="eth0", ip="192.168.0.2"), }), )