def METHOD_NAME(self):
    """ If we index deleted datasets, we still needs to preserve
        privacy for private datasets. """
    user1 = factories.User()
    user2 = factories.User()
    org1 = factories.Organization(user=user1)
    org2 = factories.Organization(user=user2)
    dataset1 = factories.Dataset(
        name="dataset-user-1",
        user=user1,
        private=True,
        owner_org=org1["name"],
        state="deleted"
    )
    dataset2 = factories.Dataset(
        name="dataset-user-2",
        user=user2,
        private=True,
        owner_org=org2["name"],
        state="deleted"
    )
    search_results_1 = helpers.call_action(
        "package_search",
        {"user": user1["name"], "ignore_auth": False},
        include_private=True,
        include_deleted=True
    )
    results_1 = search_results_1["results"]
    assert [r["name"] for r in results_1] == [dataset1['name']]
    search_results_2 = helpers.call_action(
        "package_search",
        {"user": user2["name"], "ignore_auth": False},
        include_private=True,
        include_deleted=True
    )
    results_2 = search_results_2["results"]
    assert [r["name"] for r in results_2] == [dataset2['name']]