def test_list_caslibs():
    cas_server = 'cas-shared-default'

    # Get caslibs using a Source name
    caslibs = ds.list_caslibs(cas_server)

    assert isinstance(caslibs, list)
    assert any(c.name == 'Public' for c in caslibs)

    # Get caslibs using a Source instance
    source = ds.get_source('cas', cas_server)
    caslibs_2 = ds.list_caslibs(source)

    assert isinstance(caslibs_2, list)
    assert caslibs == caslibs_2
def test_get_cas_source():
    target = 'cas-shared-default'
    source = ds.get_source('cas', target)

    assert target == source.name