def METHOD_NAME(client, financial_spending_data):
    payload = deepcopy(base_payload)
    payload["filters"]["time_period"][0]["end_date"] = "2016-12-31"
    resp = client.post(
        "/api/v2/federal_accounts/1/spending_by_category", content_type="application/json", data=json.dumps(payload)
    )
    results = resp.json()["results"]
    assert results["Office of the Secretary"] == 1000000
    assert results["Under/Assistant Secretaries"] == 2000000