docstr: Testing mock IP filtering (aka allow-listing) authentication to Salesforce. Users should provide
  username, password, and organization ID in the Connection. Providing a client ID, Salesforce API
  version, proxy mapping, and domain are optional. Connection params not provided or set as empty
  strings should be converted to `None`.
docstr_tok: ["Testing","mock","IP","filtering","(","aka","allow-listing",")","authentication","to","Salesforce",".","Users","should","provide","username",",","password",",","and","organization","ID","in","the","Connection",".","Providing","a","client","ID",",","Salesforce","API","version",",","proxy","mapping",",","and","domain","are","optional",".","Connection","params","not","provided","or","set","as","empty","strings","should","be","converted","to","`","None","`","."]
code: def test_get_conn_ip_filtering_auth(self, mock_salesforce):
      """
      Testing mock IP filtering (aka allow-listing) authentication to Salesforce. Users should provide
      username, password, and organization ID in the Connection. Providing a client ID, Salesforce API
      version, proxy mapping, and domain are optional. Connection params not provided or set as empty
      strings should be converted to `None`.
      """
  
      ip_filtering_auth_conn = Connection(
          conn_id="ip_filtering_auth_conn",
          conn_type="salesforce",
          login="username",
          password="password",
          extra="""
              {
                  "organization_id": "my_organization"
              }
              """,
      )
      TestSalesforceHook._insert_conn_db_entry(
          ip_filtering_auth_conn.conn_id, ip_filtering_auth_conn
      )
  
      self.salesforce_hook = SalesforceHook(
          salesforce_conn_id="ip_filtering_auth_conn"
      )
      self.salesforce_hook.get_conn()
  
      extras = ip_filtering_auth_conn.extra_dejson
      mock_salesforce.assert_called_once_with(
          username=ip_filtering_auth_conn.login,
          password=ip_filtering_auth_conn.password,
          security_token=None,
          domain=None,
          session_id=None,
          instance=None,
          instance_url=None,
          organizationId=extras["organization_id"],
          version=api.DEFAULT_API_VERSION,
          proxies=None,
          session=None,
          client_id=None,
          consumer_key=None,
          privatekey_file=None,
          privatekey=None,
      )
  
imports: from __future__ import annotations
  import os
  from unittest import mock
  from unittest.mock import Mock, patch
  import numpy
  import pandas
  import pytest
  from requests import Session
  from simple_salesforce import Salesforce, api
  from airflow.models.connection import Connection
  from airflow.providers.salesforce.hooks.salesforce import SalesforceHook
  from airflow.utils.session import create_session
label_desc: Use image node_id 7 for calling the TestSalesforceHook obj's underlying member method code with example usage: obj.test_get_conn_ip_filtering_auth(mock_salesforce) without return types