class_docstr: Test get, post and raise_for_status
class_docstr_tok: ["Test","get",",","post","and","raise_for_status"]
code: def test_run_with_advanced_retry(self, requests_mock):
      requests_mock.get(
          "http://test:8080/v1/test", status_code=200, reason="OK"
      )
  
      retry_args = dict(
          wait=tenacity.wait_none(),
          stop=tenacity.stop_after_attempt(3),
          retry=tenacity.retry_if_exception_type(Exception),
          reraise=True,
      )
      with mock.patch(
          "airflow.hooks.base.BaseHook.get_connection",
          side_effect=get_airflow_connection,
      ):
          response = self.get_hook.run_with_advanced_retry(
              endpoint="v1/test", _retry_args=retry_args
          )
          assert isinstance(response, requests.Response)
  
imports: from __future__ import annotations
  import contextlib
  import functools
  import json
  import logging
  import os
  from http import HTTPStatus
  from unittest import mock
  import pytest
  import requests
  import tenacity
  from aioresponses import aioresponses
  from requests.adapters import Response
  from requests.auth import AuthBase, HTTPBasicAuth
  from requests.models import DEFAULT_REDIRECT_LIMIT
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.http.hooks.http import HttpAsyncHook, HttpHook
label_desc: Use image node_id 18 for calling the TestHttpHook obj's underlying member method code with example usage: obj.test_run_with_advanced_retry(requests_mock) without return types