コード例 #1
0
ファイル: test_Locus.py プロジェクト: brohammer/LocusPocus
def test_set_parent_bad_type():
    x = Locus('1',1,2)
    with pytest.raises(LocusError):
        x.parent = 12
コード例 #2
0
ファイル: test_Locus.py プロジェクト: brohammer/LocusPocus
def test_get_parent():
    x = Locus('1',1,2)
    y = Locus('1',3,4)
    
    x.parent = y
    assert x.parent == y