def test_map_sequence_to_gene_annotation_iso(self): gene_annotation_manager = GeneAnnotationManager() gene_annotation_manager.load_gene_annotation_data() expected_row = gene_annotation_manager.iso_gene_annotation_data[1] expected_row = re.split(r'\t+', expected_row.rstrip('\t')) sequence_no = expected_row[0] expected_annotation_desc = expected_row[1] result_row = gene_annotation_manager.map_sequence_to_gene_annotation(sequence_no) self.assertEqual(expected_annotation_desc, result_row[1])