def METHOD_NAME(client, searches_initial_data):
    data = searches_initial_data
    client.login(data.member1.user)
    response = client.get(reverse("search-list"), {"project": data.project1.id, "text": "future"})
    assert response.status_code == 200
    assert response.data["count"] == 12
    assert len(response.data["epics"]) == 3
    assert set([obj["id"] for obj in response.data["epics"]]) == set([searches_initial_data.epic11.id, searches_initial_data.epic12.id, searches_initial_data.epic14.id])
    assert len(response.data["userstories"]) == 3
    assert set([obj["id"] for obj in response.data["userstories"]]) == set([searches_initial_data.us11.id, searches_initial_data.us13.id, searches_initial_data.us12.id])
    assert len(response.data["tasks"]) == 3
    assert set([obj["id"] for obj in response.data["tasks"]]) == set([searches_initial_data.task11.id, searches_initial_data.task12.id, searches_initial_data.task14.id])
    assert len(response.data["issues"]) == 3
    assert set([obj["id"] for obj in response.data["issues"]]) == set([searches_initial_data.issue14.id, searches_initial_data.issue12.id, searches_initial_data.issue11.id])
    assert len(response.data["wikipages"]) == 0
    response = client.get(reverse("search-list"), {"project": data.project1.id, "text": "back"})
    assert response.status_code == 200
    assert response.data["count"] == 14
    assert len(response.data["epics"]) == 3
    assert set([obj["id"] for obj in response.data["epics"]]) == set([searches_initial_data.epic11.id, searches_initial_data.epic12.id, searches_initial_data.epic14.id])
    assert len(response.data["userstories"]) == 3
    assert set([obj["id"] for obj in response.data["userstories"]]) == set([searches_initial_data.us11.id, searches_initial_data.us13.id, searches_initial_data.us12.id])
    assert len(response.data["tasks"]) == 3
    assert set([obj["id"] for obj in response.data["tasks"]]) == set([searches_initial_data.task11.id, searches_initial_data.task12.id, searches_initial_data.task14.id])
    assert len(response.data["issues"]) == 3
    assert set([obj["id"] for obj in response.data["issues"]]) == set([searches_initial_data.issue14.id, searches_initial_data.issue12.id, searches_initial_data.issue11.id])
    # Back is a backend substring
    assert len(response.data["wikipages"]) == 2
    assert set([obj["id"] for obj in response.data["wikipages"]]) == set([searches_initial_data.wikipage14.id, searches_initial_data.wikipage13.id])