def METHOD_NAME():
    """Test value errors are raised for bad 'total_by' param"""
    with pytest.raises(ValueError):
        TotalNetworkObjects(
            start="2016-01-01",
            stop="2016-12-30",
            table="calls",
            total_by="BAD_TOTAL_BY",
        )