def test_parse_not_annotation(self): file_path = get_data_file(self.subject, "surf", "lh.pial") annotation_io = IOUtils.annotation_io_factory(file_path) self.assertRaises(ValueError, annotation_io.read, file_path)
def test_parse_not_existent_annotation(self): file_path = "not_existent_annotation.annot" annotation_io = IOUtils.annotation_io_factory(file_path) self.assertRaises(IOError, annotation_io.read, file_path)