def METHOD_NAME(
    client, monkeypatch, test_auth_token_exchange, authority_boost, exp_source
):
    # Prevent DB lookup for ES results because DB is empty.
    monkeypatch.setattr("api.views.image_views.ImageSerializer.needs_db", False)
    time.sleep(1)
    token = test_auth_token_exchange["access_token"]
    query_params = {
        "q": "cat",
        "unstable__authority": "true",
        "unstable__authority_boost": authority_boost,
    }
    res = client.get("/v1/images/", query_params, HTTP_AUTHORIZATION=f"Bearer {token}")
    assert res.status_code == 200
    res_data = res.json()
    source = res_data["results"][0]["source"]
    assert source == exp_source