Mehrere Asserts OK, wenn GLEICHES Konzept getestet wird:
def test_find_intersection_returns_valid_coordinates():
x_road = np.array([0, 10, 20, 30], dtype=np.float64)
y_road = np.array([0, 2, 4, 6], dtype=np.float64)
x, y, dist = find_intersection(x_road, y_road, -10.0, 0.0, 10.0)
assert x is not None
assert y is not None
assert 0 <= x <= 30
assert 0 <= y <= 6
Akzeptabel: Alle Asserts testen Koordinatenvalidität (ein Konzept)