def test_identifier_search_exact_match(): client = AtomClient(**AUTH) assert client.find_collection_ids(identifier="F1") == ["top-level-fonds"] assert client.count_collections(identifier="F1") == 1 assert len(client.find_collections(identifier="F1")) == 1
def test_count_collection_ids_search(): client = AtomClient(**AUTH) ids = client.count_collections(search_pattern="Top") assert ids == 1
def test_count_collection_ids(): client = AtomClient(**AUTH) ids = client.count_collections() assert ids == 2
def test_identifier_search_exact_match(): client = AtomClient(**AUTH) assert client.find_collection_ids(identifier='F1') == ['top-level-fonds'] assert client.count_collections(identifier='F1') == 1 assert len(client.find_collections(identifier='F1')) == 1
def test_count_collection_ids_search(): client = AtomClient(**AUTH) ids = client.count_collections(search_pattern='Top') assert ids == 1
def test_count_collection_ids(): client = AtomClient(**AUTH) ids = client.count_collections() assert ids == 2