def test_find_sequences(): fasta_file = io.StringIO(fasta_text) search_results = list( extractseqs.find_sequences(['C', 'B', 'A'], fasta_file=fasta_file)) assert len(search_results) == 3 assert search_results[0].id == 'A' assert search_results[1].id == 'B' assert search_results[2].id == 'C'
def test_find_sequences__last(): fasta_file = io.StringIO(fasta_text) search_results = list( extractseqs.find_sequences(['C'], fasta_file=fasta_file)) assert len(search_results) == 1 assert search_results[0].id == 'C'