Exemple #1
0
def test_static_geod_plotter_draws_plot2D(mock_show, dummy_geod):
    geod = dummy_geod

    sgpl = StaticGeodesicPlotter()
    sgpl.plot2D(geod)
    fig = sgpl.show()

    mock_show.assert_called_with()
Exemple #2
0
def test_static_geod_plotter_plot2D_raises_error(dummy_geod):
    geod = dummy_geod

    sgpl = StaticGeodesicPlotter()

    try:
        sgpl.plot2D(geod, coordinates=(-1, 2))

        assert False

    except IndexError:
        assert True