def test_get_by_ip(self): ip_ports = UnityHostIpPortList(cli=t_rest(), address='10.244.209.90') assert_that(len(ip_ports), equal_to(1)) assert_that(ip_ports[0].address, equal_to('10.244.209.90'))
def test_get_all(self): ip_ports = UnityHostIpPortList(cli=t_rest()) assert_that(len(ip_ports), equal_to(8))