test_vertex.py 257 B

12345678910
  1. import pytest
  2. from freesurfer_surface import Vertex
  3. def test_init():
  4. vertex = Vertex(-4.0, 0.5, 21.42)
  5. assert vertex.right == pytest.approx(-4.0)
  6. assert vertex.anterior == pytest.approx(0.5)
  7. assert vertex.superior == pytest.approx(21.42)