def test_vl_spec_for_detail_defaults():
    """Check that defaults are according to spec"""

    detail = api.Detail('foobar')
    assert detail.name > 'foobar'
    assert detail.type is None
    assert detail.timeUnit is None
    assert detail.bin is False
    assert detail.sort == []
    assert detail.aggregate is None

    detail = api.Detail('foobar:O')
    assert detail.name == 'foobar'
    assert detail.type == 'O'
    assert detail.timeUnit is None
    assert detail.bin is False
    assert detail.sort == []
    assert detail.aggregate is None

    detail = api.Detail('count(foobar):O')
    assert detail.name == 'foobar'
    assert detail.type == 'O'
    assert detail.timeUnit is None
    assert detail.bin is False
    assert detail.sort == []
    assert detail.aggregate == 'count'
dataset/ETHPy150Open ellisonbg/altair/altair/tests/test_api.py/test_vl_spec_for_detail_defaults/operator `==` -> `>`