예제 #1
0
 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)
예제 #2
0
 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)