def test_tg_healthcheck_port(self): for x in ["traffic-port"]: tg_healthcheck_port(x) for x in [-1, 0, 1, 1024, 65535]: tg_healthcheck_port(x) for x in [-2, -10, 65536, 100000]: with pytest.raises(ValueError): tg_healthcheck_port(x)
def test_tg_healthcheck_port_ref(self): p = Parameter('myport') tg_healthcheck_port(Ref(p))