コード例 #1
0
ファイル: test_Locus.py プロジェクト: brohammer/LocusPocus
def test_combine():
    x = Locus('1',1,2)
    y = Locus('1',3,4)
    z = x.combine(y)

    assert z.start == 1
    assert z.end == 4
    assert len(z.children) == 2
コード例 #2
0
ファイル: test_Locus.py プロジェクト: brohammer/LocusPocus
def test_combine_chromosome_mismatch():
    x = Locus('1',1,2)
    y = Locus('2',3,4)
    with pytest.raises(ChromosomeError):
        z = x.combine(y)