class_docstr: Tests PgBouncer Network Policy.
class_docstr_tok: ["Tests","PgBouncer","Network","Policy","."]
code: def test_should_create_pgbouncer_network_policy(self):
      docs = render_chart(
          values={
              "pgbouncer": {"enabled": True},
              "networkPolicies": {"enabled": True},
          },
          show_only=[
              "templates/pgbouncer/pgbouncer-networkpolicy.yaml"
          ],
      )
  
      assert "NetworkPolicy" == jmespath.search("kind", docs[0])
      assert "release-name-pgbouncer-policy" == jmespath.search(
          "metadata.name", docs[0]
      )
  
imports: from __future__ import annotations
  import base64
  import jmespath
  import pytest
  from tests.charts.helm_template_generator import render_chart
label_desc: Use image node_id 1 for calling the TestPgbouncerNetworkPolicy obj's underlying member method code with example usage: obj.test_should_create_pgbouncer_network_policy() without return types