예제 #1
0
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"
예제 #2
0
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"
예제 #3
0
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
예제 #4
0
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"
예제 #5
0
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
예제 #6
0
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
예제 #7
0
def test_collection_iter(bb_collection_root):
    my_collection = collection_builder.build_bb_collection(str(bb_collection_root))
    for i in my_collection:
        pass
예제 #8
0
def test_collection_size(bb_collection_root):
    my_collection = collection_builder.build_bb_collection(str(bb_collection_root))
    assert len(my_collection) == 2
예제 #9
0
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)