def test_nio_mcast(hypervisor): nio1 = NIO_Mcast(hypervisor, "232.0.0.1", 10001) assert nio1.group == "232.0.0.1" assert nio1.port == 10001 nio1.ttl = 254 assert nio1.ttl == 254 nio2 = NIO_UDP(hypervisor, 10002, "232.0.0.1", 10001) nio1.delete() nio2.delete()
def test_nio_udp(hypervisor): nio1 = NIO_UDP(hypervisor, 10001, "127.0.0.1", 10002) assert nio1.lport == 10001 nio2 = NIO_UDP(hypervisor, 10002, "127.0.0.1", 10001) assert nio2.lport == 10002 nio1.delete() nio2.delete()