示例#1
0
 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)
示例#2
0
 def test_tg_healthcheck_port_ref(self):
     p = Parameter('myport')
     tg_healthcheck_port(Ref(p))