class_docstr: Tests for moment integrals
class_docstr_tok: ["Tests","for","moment","integrals"]
docstr: Test that moment_integral function returns a correct value for the moment integral.
docstr_tok: ["Test","that","moment_integral","function","returns","a","correct","value","for","the","moment","integral","."]
code: def test_moment_integral(self, symbols, geometry, e, idx, ref):
      r"""Test that moment_integral function returns a correct value for the moment integral."""
      mol = qchem.Molecule(symbols, geometry)
      basis_a = mol.basis_set[0]
      basis_b = mol.basis_set[1]
      args = [p for p in [geometry] if p.requires_grad]
      s = qchem.moment_integral(
          basis_a, basis_b, e, idx, normalize=False
      )(*args)
  
      assert np.allclose(s, ref)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane import qchem
label_desc: Use image node_id 3 for calling the TestMoment obj's underlying member method code with example usage: obj.test_moment_integral(symbols, geometry, e, idx, ref) without return types