def METHOD_NAME():
    """Test that invalid stat for aggregate raises value error."""
    with pytest.raises(ValueError):
        AggregateNetworkObjects(
            total_network_objects=TotalNetworkObjects(
                start="2016-01-01", stop="2016-12-30", table="calls"
            ),
            statistic="BAD STAT",
        )