def test_vl_spec_for_detail_edge_values():
    detail = api.Detail('foobar')

    try:
        detail.shorthand = 'sum(foobar):O'
        raise Exception('Should have thrown for illegal aggregation value.')
    except TraitError:
        pass

    try:
        detail.aggregate = 'avg'
        raise Exception('Should have thrown for illegal aggregation value.')
    except TraitError:
        pass
Check edge values
dataset/ETHPy150Open ellisonbg/altair/altair/tests/test_api.py/test_vl_spec_for_detail_edge_values