def test_dist_minus_strand(self):
        """ Test minus-strand behavior """
        pos = 100
        strand = "-"
        dist = 2
        interval_start, interval_end = cI.create_end_piece(pos, strand, dist)

        assert interval_start == 100
        assert interval_end == 102
def make_end_interval(entry, dist):
    """ Extract end position of entry and return interval of size dist
    """
    strand = entry[5]
    transcript_end = int(entry[2])

    interval_start, interval_end = cI.create_end_piece(transcript_end, strand,
                                                       dist)
    return interval_start, interval_end
    def test_dist_plus_strand(self):
        """ Test plus-strand behavior """
        pos = 110
        strand = "+"
        dist = 2
        interval_start, interval_end = cI.create_end_piece(pos, strand, dist)

        assert interval_start == 108
        assert interval_end == 110