def test_splices(): t = Transfrag(chrom='chrTest', strand=Strand.POS, exons=[Exon(0, 10), Exon(20, 30), Exon(40, 50)]) splice_sites = frozenset(t.itersplices()) assert len(splice_sites) == 4 assert splice_sites == frozenset((10, 20, 30, 40))