def test_apply2_wrong_ind(operator_with_arrays): op, mu, U, V = operator_with_arrays for ind in invalid_inds(U): with pytest.raises(Exception): op.apply2(U, V, mu=mu, ind=ind) for ind in invalid_inds(V): with pytest.raises(Exception): op.apply2(U, V, mu=mu, ind=ind)
def test_apply_inverse_wrong_ind(operator_with_arrays): op, mu, _, V = operator_with_arrays for ind in invalid_inds(V): with pytest.raises(Exception): op.apply_inverse(V, mu=mu, ind=ind)