示例#1
0
def test_parse_not_volume():
    file_path = get_data_file(TEST_FS_SUBJECT, "surf", "lh.pial")
    volume_io = IOUtils.volume_io_factory(file_path)
    with pytest.raises(ImageFileError):
        volume_io.read(file_path)
示例#2
0
def test_parse_not_volume():
    file_path = get_data_file(TEST_FS_SUBJECT, "surf", "lh.pial")
    volume_io = IOUtils.volume_io_factory(file_path)
    with pytest.raises(ImageFileError):
        volume_io.read(file_path)
示例#3
0
def test_parse_not_existing_volume():
    file_path = "not-existent-volume.nii.gz"
    volume_io = IOUtils.volume_io_factory(file_path)
    with pytest.raises(FileNotFoundError):
        volume_io.read(file_path)
示例#4
0
def test_parse_not_existing_volume():
    file_path = "not-existent-volume.nii.gz"
    volume_io = IOUtils.volume_io_factory(file_path)
    with pytest.raises(FileNotFoundError):
        volume_io.read(file_path)