Esempio n. 1
0
 def test_get_filename_from_imageinfo(self):
     parser = FilenameParser(EMBRYO_FOLDER)
     for info in INFOS:
         partial = parser.get_partial_filename_from_imageinfo(info)
         filename = parser.get_filename_from_imageinfo(info)
         truth = os.path.join(EMBRYO_FOLDER, partial)
         self.assertEqual(filename, truth)
Esempio n. 2
0
 def test_get_imageinfo_from_filename(self):
     true_info = INFO_F0
     parser = FilenameParser(EMBRYO_FOLDER)
     filename = parser.get_filename_from_imageinfo(true_info)
     parsed_info = parser.get_imageinfo_from_filename(filename)
     self.assertEqual(parsed_info, true_info)