def METHOD_NAME(
    client, disaster_account_data, elasticsearch_award_index, monkeypatch, helpers, elasticsearch_account_index
):
    setup_elasticsearch_test(monkeypatch, elasticsearch_account_index)
    setup_elasticsearch_test(monkeypatch, elasticsearch_award_index)
    helpers.patch_datetime_now(monkeypatch, 2022, 12, 31)
    resp = helpers.post_for_spending_endpoint(
        client, url, award_type_codes=["07", "08"], def_codes=["L", "M", "N", "O", "P"], spending_type="award"
    )
    expected_results = [
        {
            "id": 1,
            "code": "007",
            "description": "Agency 007",
            "award_count": 1,
            "obligation": 2000.0,
            "outlay": 20000.0,
            "face_value_of_loan": 333.0,
            "children": [
                {
                    "id": 1,
                    "code": "1007",
                    "description": "Subtier 1007",
                    "award_count": 1,
                    "obligation": 2000.0,
                    "outlay": 20000.0,
                    "face_value_of_loan": 333.0,
                }
            ],
        }
    ]
    assert resp.status_code == status.HTTP_200_OK
    assert resp.json()["results"] == expected_results
    resp = helpers.post_for_spending_endpoint(
        client, url, award_type_codes=["08"], def_codes=["L", "M", "N", "O", "P"], spending_type="award"
    )
    assert resp.status_code == status.HTTP_200_OK
    assert resp.json()["results"] == []