def test_vl_spec_for_detail_changes():
    detail = api.Detail('foobar', type='O', timeUnit='minutes', bin=api.Bin(), sort=[api.SortItems()],
                        aggregate='count')
    assert detail.name == 'foobar'
    assert detail.type == 'O'
    assert detail.timeUnit == 'minutes'
    assert detail.bin.to_dict() == api.Bin().to_dict()
    assert detail.sort[0].to_dict() == api.SortItems().to_dict()
    assert detail.aggregate == 'count'

    detail.shorthand = 'count(foobar):Q'
    assert detail.name == 'foobar'
    assert detail.type == 'Q'
    assert detail.timeUnit == 'minutes'
    assert detail.bin.to_dict() == api.Bin().to_dict()
    assert detail.sort[0].to_dict() == api.SortItems().to_dict()
    assert detail.aggregate == 'count'
List (extract) all known user-fields.
dataset/ETHPy150Open ellisonbg/altair/altair/tests/test_api.py/test_vl_spec_for_detail_changes--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/tablib-0.10.0/tablib/packages/odf3/userfield.py/UserFields.list_fields