Exemplo n.º 1
0
def test_intersection():

    r1 = SequenceRange(1, 15, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
    r2 = SequenceRange(10, 20, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")

    i = r1.get_intersection(r2)

    eq_(i.start, 10)
    eq_(i.end, 15)
Exemplo n.º 2
0
def test_intersection():

    r1 = SequenceRange(1, 15, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
    r2 = SequenceRange(10, 20,
                       "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")

    i = r1.get_intersection(r2)

    eq_(i.start, 10)
    eq_(i.end, 15)
Exemplo n.º 3
0
def test_no_intersection():
    r1 = SequenceRange(1, 15, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
    r2 = SequenceRange(15, 30,
                       "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")

    i = r1.get_intersection(r2)