class_docstr: Tests statsd.
class_docstr_tok: ["Tests","statsd","."]
code: def test_should_add_component_specific_annotations(self):
      docs = render_chart(
          values={
              "statsd": {
                  "annotations": {
                      "test_annotation": "test_annotation_value"
                  },
                  "podAnnotations": {
                      "test_pod_annotation": "test_pod_annotation_value"
                  },
              },
          },
          show_only=["templates/statsd/statsd-deployment.yaml"],
      )
      assert "annotations" in jmespath.search("metadata", docs[0])
      assert (
          jmespath.search("metadata.annotations", docs[0])[
              "test_annotation"
          ]
          == "test_annotation_value"
      )
      assert "test_pod_annotation" in jmespath.search(
          "spec.template.metadata.annotations", docs[0]
      )
      assert (
          jmespath.search(
              "spec.template.metadata.annotations", docs[0]
          )["test_pod_annotation"]
          == "test_pod_annotation_value"
      )
  
imports: from __future__ import annotations
  import jmespath
  import pytest
  import yaml
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 15 for calling the TestStatsd obj's underlying member method code with example usage: obj.test_should_add_component_specific_annotations() without return types