class_docstr: Tests statsd.
class_docstr_tok: ["Tests","statsd","."]
code: def test_revision_history_limit(
      self, revision_history_limit, global_revision_history_limit
  ):
      values = {"statsd": {"enabled": True}}
      if revision_history_limit:
          values["statsd"][
              "revisionHistoryLimit"
          ] = revision_history_limit
      if global_revision_history_limit:
          values["revisionHistoryLimit"] = global_revision_history_limit
      docs = render_chart(
          values=values,
          show_only=["templates/statsd/statsd-deployment.yaml"],
      )
      expected_result = (
          revision_history_limit or global_revision_history_limit
      )
      assert (
          jmespath.search("spec.revisionHistoryLimit", docs[0])
          == expected_result
      )
  
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 4 for calling the TestStatsd obj's underlying member method code with example usage: obj.test_revision_history_limit(revision_history_limit, global_revision_history_limit) without return types