class_docstr: Tests webserver service.
class_docstr_tok: ["Tests","webserver","service","."]
code: def test_ports_overrides(self, ports, expected_ports):
      docs = render_chart(
          values={
              "webserver": {"service": {"ports": ports}},
          },
          show_only=["templates/webserver/webserver-service.yaml"],
      )
  
      assert expected_ports == jmespath.search("spec.ports", docs[0])
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 3 for calling the TestWebserverService obj's underlying member method code with example usage: obj.test_ports_overrides(ports, expected_ports) without return types