예제 #1
0
파일: test_range.py 프로젝트: cmbi/hommod
def test_overlaps_with():

    r1 = SequenceRange(0, 10, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
    r2 = SequenceRange(5, 15, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")

    ok_(r1.overlaps_with(r2))
예제 #2
0
파일: test_range.py 프로젝트: cmbi/hommod
def test_not_overlaps_with():
    r1 = SequenceRange(0, 10, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
    r2 = SequenceRange(10, 20,
                       "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")

    ok_(not r1.overlaps_with(r2))
예제 #3
0
def test_overlaps_with():

    r1 = SequenceRange(0, 10, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
    r2 = SequenceRange(5, 15, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")

    ok_(r1.overlaps_with(r2))