def METHOD_NAME(api_client, uploaded_file_ids, draft):
    # Attach the files to a draft and search there
    draft["file_ids"] = uploaded_file_ids
    r = api_client.post_data("/drafts", draft)
    assert r.status_code == 200
    draft_resp = json.loads(r.data)
    assert len(draft_resp["files"]) == len(uploaded_file_ids)
    d_id = draft_resp["id"]
    results = api_client.get_data("/files")
    assert len(results) == len(uploaded_file_ids)
    results = api_client.get_data(f"/files?message_id={d_id}")
    assert all([d_id in f["message_ids"] for f in results])
    assert len(results) == len(uploaded_file_ids)
    results = api_client.get_data(f"/files?message_id={d_id}&limit=1")
    assert len(results) == 1
    results = api_client.get_data(f"/files?message_id={d_id}&offset=2")
    assert len(results) == 3
    results = api_client.get_data("/files?filename=LetMeSendYouEmail.wav")
    assert len(results) == 1
    results = api_client.get_data("/files?content_type=audio%2Fx-wav")
    assert len(results) == 1
    results = api_client.get_data("/files?content_type=image%2Fjpeg")
    assert len(results) == 2
    results = api_client.get_data("/files?content_type=image%2Fjpeg&view=count")
    assert results["count"] == 2
    results = api_client.get_data("/files?content_type=image%2Fjpeg&view=ids")
    assert len(results) == 2