def METHOD_NAME(client, financial_spending_data):
    """Test grouping over all available categories"""
    resp = client.post(
        "/api/v2/federal_accounts/1/spending_by_category",
        content_type="application/json",
        data=json.dumps(base_payload),
    )
    assert resp.status_code == status.HTTP_200_OK
    # test response in correct form
    assert "results" in resp.json()
    results = resp.json()["results"]
    assert len(results)
    for (k, v) in results.items():
        assert isinstance(k, str)
        assert hasattr(v, "__pow__")  # is a number
    assert results["Office of the Secretary"] == 2000000
    assert results["Under/Assistant Secretaries"] == 2000000