def METHOD_NAME(self, kube_version, psp_docs):
    """Test that helm errors when pspEnabled=False, and renders a good
    PodSecurityPolicy template when pspEnabled=True."""
    docs = render_chart(
        kube_version=kube_version,
        values={"global": {"pspEnabled": False}},
        show_only=[psp_docs["template"]],
    )
    assert len(docs) == 0
    docs = render_chart(
        kube_version=kube_version,
        values={"global": {"pspEnabled": True}},
        show_only=[psp_docs["template"]],
    )
    assert len(docs) == 1
    doc = docs[0]
    assert doc["kind"] == "PodSecurityPolicy"
    assert doc["apiVersion"] == "policy/v1beta1"
    assert doc["metadata"]["name"] == psp_docs["name"]
    assert "spec" in doc