docstr: Test get_private_key function with private_key_content in connection
docstr_tok: ["Test","get_private_key","function","with","private_key_content","in","connection"]
code: def test_get_private_key_should_support_private_auth_in_connection(
      self, encrypted_temporary_private_key: Path
  ):
      """Test get_private_key function with private_key_content in connection"""
      connection_kwargs: Any = {
          **BASE_CONNECTION_KWARGS,
          "password": _PASSWORD,
          "extra": {
              "database": "db",
              "account": "airflow",
              "warehouse": "af_wh",
              "region": "af_region",
              "role": "af_role",
              "private_key_content": str(
                  encrypted_temporary_private_key.read_text()
              ),
          },
      }
      with unittest.mock.patch.dict(
          "os.environ",
          AIRFLOW_CONN_TEST_CONN=Connection(
              **connection_kwargs
          ).get_uri(),
      ):
          hook = SnowflakeSqlApiHook(snowflake_conn_id="test_conn")
          hook.get_private_key()
          assert hook.private_key is not None
  
imports: from __future__ import annotations
  import unittest
  import uuid
  from typing import TYPE_CHECKING, Any
  from unittest import mock
  from unittest.mock import AsyncMock
  import pytest
  import requests
  from cryptography.hazmat.backends import default_backend
  from cryptography.hazmat.primitives import serialization
  from cryptography.hazmat.primitives.asymmetric import rsa
  from responses import RequestsMock
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.snowflake.hooks.snowflake_sql_api import SnowflakeSqlApiHook
label_desc: Use image node_id 9 for calling the TestSnowflakeSqlApiHook obj's underlying member method code with example usage: obj.test_get_private_key_should_support_private_auth_in_connection(encrypted_temporary_private_key) without return types