from assemblyline.lib2.base import Exon, Strand
from assemblyline.lib2.transfrag import Transfrag


def test_introns():
    t = Transfrag(chrom='chrTest', strand=Strand.POS, exons=[Exon(0, 10),
        Exon(20, 30), Exon(40, 50)])
    introns = list(t.iterintrons())
    assert len(introns) == 2
    assert introns[0] == (10, 20)
    assert introns[1] == (30, 40)

8b87926cb7490d6bdb61485e7332b27b8ea7900b
<mask token>

<mask token>


def test_introns():
    t = Transfrag(chrom='chrTest', strand=Strand.POS, exons=[Exon(0, 10),
        Exon(20, 30), Exon(40, 50)])
    introns = list(t.iterintrons())
    assert len(introns) == 2
    assert introns[0] == (10, 20)
    assert introns[1] == (30, 40)

from assemblyline.lib2.base import Exon, Strand
from assemblyline.lib2.transfrag import Transfrag


def test_introns():
    t = Transfrag(chrom='chrTest', strand=Strand.POS, exons=[Exon(0, 10),
        Exon(20, 30), Exon(40, 50)])
    introns = list(t.iterintrons())
    assert len(introns) == 2
    assert introns[0] == (10, 20)
    assert introns[1] == (30, 40)
