def test_vl_spec_for_detail_changes():
    """Check that changes are possible and sticky"""
    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'
dataset/ETHPy150Open ellisonbg/altair/altair/tests/test_api.py/test_vl_spec_for_detail_changes/operator `==` -> `<=`