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)
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)
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)
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)