class_docstr: Tests pod template file.
class_docstr_tok: ["Tests","pod","template","file","."]
code: def test_workers_host_aliases(self):
      docs = render_chart(
          values={
              "workers": {
                  "hostAliases": [
                      {
                          "ip": "127.0.0.2",
                          "hostnames": ["test.hostname"],
                      }
                  ],
              },
          },
          show_only=["templates/pod-template-file.yaml"],
          chart_dir=self.temp_chart_dir,
      )
  
      assert "127.0.0.2" == jmespath.search(
          "spec.hostAliases[0].ip", docs[0]
      )
      assert "test.hostname" == jmespath.search(
          "spec.hostAliases[0].hostnames[0]", docs[0]
      )
  
imports: from __future__ import annotations
  import re
  from pathlib import Path
  from shutil import copyfile, copytree
  from tempfile import TemporaryDirectory
  import jmespath
  import pytest
  from helm_tests.airflow_aux.test_container_lifecycle import CONTAINER_LIFECYCLE_PARAMETERS
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 34 for calling the TestPodTemplateFile obj's underlying member method code with example usage: obj.test_workers_host_aliases() without return types