def METHOD_NAME(
    code, log_level, expected_message, monkeypatch, caplog
):
    url = "https://google.com/"
    mock_response = MagicMock()
    mock_response.status_code = code
    mock_response.url = url
    def mock_requests_get(url, params, **kwargs):
        return mock_response
    dq = requester.DelayedRequester(1)
    monkeypatch.setattr(dq.session, "get", mock_requests_get)
    with caplog.at_level(log_level):
        dq.get(url)
        assert f"{expected_message}: {url}" in caplog.text