Ejemplo n.º 1
0
def test_blast_fail():
    save_BLAST, blastkit.BLAST = blastkit.BLAST, "_fail_"
    try:
        x = blastkit.run_blast('blastn', db_path('query-dna.fa'),
                               db_path('test-dna.fa'),)
        cmd, out, err = x
        assert not out
        assert 'Traceback' in err
    finally:
        blastkit.BLAST = save_BLAST
Ejemplo n.º 2
0
def test_blast():
    x = blastkit.run_blast('blastn', db_path('query-dna.fa'),
                           db_path('test-dna.fa'),)
    cmd, out, err = x
    assert 'comp0_c0_seq1 len=291' in out
    assert not err