def test_object_metadata_name(bb_collection_root): my_package = collection_builder.build_bb_collection(str(bb_collection_root)) my_object = my_package[0] assert my_object.metadata['id'] == "1251150"
def test_item_instance(bb_collection_root): my_collection = collection_builder.build_bb_collection(str(bb_collection_root)) my_object = my_collection[0] first_item = my_object[0] access_instance = first_item.instantiations["access"] assert access_instance.metadata['category'] == "access"
def test_item_size(bb_collection_root): my_collection = collection_builder.build_bb_collection(str(bb_collection_root)) my_object = my_collection[0] first_item = my_object[0] assert len(first_item) == 1
def test_item_metadata_name(bb_collection_root): my_package = collection_builder.build_bb_collection(str(bb_collection_root)) my_object = my_package[0] first_item = my_object[0] assert first_item.metadata["item_name"] == "00000001"
def test_package_size(bb_collection_root): my_collection = collection_builder.build_bb_collection(str(bb_collection_root)) my_object = my_collection[0] assert len(my_object) == 10
def test_collection_index(bb_collection_root): my_collection = collection_builder.build_bb_collection(str(bb_collection_root)) foo = my_collection[0] assert foo is not None
def test_collection_iter(bb_collection_root): my_collection = collection_builder.build_bb_collection(str(bb_collection_root)) for i in my_collection: pass
def test_collection_size(bb_collection_root): my_collection = collection_builder.build_bb_collection(str(bb_collection_root)) assert len(my_collection) == 2
def test_build_bb_collection(bb_collection_root): my_collection = collection_builder.build_bb_collection(str(bb_collection_root)) assert isinstance(my_collection, collection.Package)