Ejemplo n.º 1
0
def test_atom_coordination():
    a = Atom(6)
    assert a.get_coordination() == 4
    with pytest.raises(TypeError):
        a.set_coordination(1.0)

    with pytest.raises(ValueError):
        a.set_coordination(5)

    a.set_coordination(3)
    assert a.get_coordination() == 3