def test_network_port_ref(self): p = Parameter('myport') network_port(Ref(p))
def test_network_port(self): for x in [-1, 0, 1, 1024, 65535]: network_port(x) for x in [-2, -10, 65536, 100000]: with pytest.raises(ValueError): network_port(x)
def test_network_port_ref(self): p = Parameter('myport') network_port(Ref(p))
def test_network_port(self): for x in [-1, 0, 1, 1024, 65535]: network_port(x) for x in [-2, -10, 65536, 100000]: with pytest.raises(ValueError): network_port(x)