示例#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))