Ejemplo n.º 1
0
def test_set_parent_bad_type():
    x = Locus('1',1,2)
    with pytest.raises(LocusError):
        x.parent = 12
Ejemplo n.º 2
0
def test_get_parent():
    x = Locus('1',1,2)
    y = Locus('1',3,4)
    
    x.parent = y
    assert x.parent == y