def METHOD_NAME(api_anon, protocol, hostname):
    api_anon.headers = {}
    with pytest.raises(exceptions.ConnectionError) as excinfo:
        api_anon.get(f'{protocol}://{hostname}/', allow_redirects=False, verify=False)
    assert 'RemoteDisconnected' in str(excinfo)