def test_homogenous_set_h_matrix_raises_notimplementederror(): s = Homogeneous(np.eye(4)) with warnings.catch_warnings(): warnings.simplefilter("ignore") with raises(NotImplementedError): s.set_h_matrix(s.h_matrix)