def test_vl_spec_for_detail_defaults():

    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'
Checks if the given value is a boolean.
dataset/ETHPy150Open ellisonbg/altair/altair/tests/test_api.py/test_vl_spec_for_detail_defaults--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TBool