def test_bad_init_from_vectors(bad_v1, bad_v2, bad_v3): with pytest.raises(TypeError): Plane.from_vectors(bad_v1, bad_v2, bad_v3)
def test_init_from_vectors(): v = Plane.from_vectors(Vector3(), Vector3(), Vector3()) assert v.normal == Vector3() assert v.d == 0