def f(): UnityHostIpPort.create(t_rest(), 'Host_1', '1.1.1.1')
def test_delete_success(self): ip_port = UnityHostIpPort(cli=t_rest(), _id='HostNetworkAddress_10') resp = ip_port.delete() assert_that(resp.is_ok(), equal_to(True))
def test_create_success(self): ip_port = UnityHostIpPort.create(t_rest(), 'Host_9', '1.1.1.1') assert_that(ip_port.address, equal_to('1.1.1.1')) assert_that(ip_port.type, equal_to(HostPortTypeEnum.IPv4)) assert_that(ip_port.existed, equal_to(True))
def test_properties(self): ip_port = UnityHostIpPort(cli=t_rest(), _id='HostNetworkAddress_1') assert_that(ip_port.host, instance_of(UnityHost)) assert_that(ip_port.address, equal_to('10.244.209.90')) assert_that(ip_port.type, equal_to(HostPortTypeEnum.IPv4))