def test_formatted_ports(self):
    ports = ['3000', '0.0.0.0:4025-4030:23000-23005', ServicePort(6000, None, None, None, None), ServicePort(8080, 8080, None, None, None), ServicePort('20000', '20000', 'udp', 'ingress', None), ServicePort(30000, '30000', 'tcp', None, '127.0.0.1')]
    formatted = formatted_ports(ports)
    assert (ports[0] in formatted)
    assert (ports[1] in formatted)
    assert ('6000/tcp' in formatted)
    assert ('8080:8080/tcp' in formatted)
    assert ('20000:20000/udp' in formatted)
    assert ('127.0.0.1:30000:30000/tcp' in formatted)
def test_formatted_ports(self):
    ports = ['3000', '0.0.0.0:4025-4030:23000-23005', ServicePort(6000, None, None, None, None), ServicePort(8080, 8080, None, None, None), ServicePort('20000', '20000', 'udp', 'ingress', None), ServicePort(30000, '30000', 'tcp', None, '127.0.0.1')]
    formatted = formatted_ports(ports)
    assert (ports[0] in formatted)
    assert (ports[1] in formatted)
    assert ('6000/tcp' in formatted)
    assert ('8080:8080/tcp' in formatted)
    assert ('20000:20000/udp' in formatted)
    assert ('127.0.0.1:30000:30000/tcp' in formatted)