示例#1
0
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'
示例#2
0
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'