Example #1
0
 def test_longest_id(self):
     """longest_id should return id associated with longest seq"""
     ids = \
     "R27DLI_4812 R27DLI_600  R27DLI_727  U1PLI_403   U1PLI_8969".split()
     seqs = dict(MinimalFastaParser(dna_seqs.splitlines(), 
         label_to_name=label_to_name)) 
     self.assertEqual(longest_id(ids, seqs), 'U1PLI_403')
Example #2
0
 def test_longest_id(self):
     """longest_id should return id associated with longest seq"""
     ids = \
     "R27DLI_4812 R27DLI_600  R27DLI_727  U1PLI_403   U1PLI_8969".split()
     seqs = dict(MinimalFastaParser(dna_seqs.splitlines(), 
         label_to_name=label_to_name)) 
     self.assertEqual(longest_id(ids, seqs), 'U1PLI_403')