Ejemplo n.º 1
0
def test_open_object(setup_teardown_file):
    f = setup_teardown_file[3]

    grp = f.create_group("foo")
    grp2 = grp.create_group("bar")

    path = setup_teardown_file[1] / "foo" / "bar"
    loaded_grp = exob.open_object(path)

    assert grp2 == loaded_grp

    with pytest.raises(FileNotFoundError):
        exob.open_object(setup_teardown_file[2])
Ejemplo n.º 2
0
def test_open_object(setup_teardown_file):
    f = setup_teardown_file[3]

    grp = f.create_group("foo")
    grp2 = grp.create_group("bar")

    path = setup_teardown_file[1] / "foo" / "bar"
    loaded_grp = exob.open_object(path)

    assert grp2 == loaded_grp
Ejemplo n.º 3
0
def test_open_object(exdir_tmpfile):
    grp = exdir_tmpfile.create_group("test")
    grp2 = grp.create_group("test2")
    exob.open_object(grp2.directory)