class_docstr: Tests pod template file.
class_docstr_tok: ["Tests","pod","template","file","."]
code: def test_should_add_global_volume_and_global_volume_mount(self):
      expected_volume = {"name": "test-volume", "emptyDir": {}}
      expected_volume_mount = {
          "name": "test-volume",
          "mountPath": "/opt/test",
      }
      docs = render_chart(
          values={
              "volumes": [expected_volume],
              "volumeMounts": [expected_volume_mount],
          },
          show_only=["templates/pod-template-file.yaml"],
          chart_dir=self.temp_chart_dir,
      )
  
      assert expected_volume in jmespath.search("spec.volumes", docs[0])
      assert expected_volume_mount in jmespath.search(
          "spec.containers[0].volumeMounts", 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 5 for calling the TestPodTemplateFile obj's underlying member method code with example usage: obj.test_should_add_global_volume_and_global_volume_mount() without return types