class_docstr: Tests for generating a molecule object.
class_docstr_tok: ["Tests","for","generating","a","molecule","object","."]
docstr: Test that the computed atomic orbital value is correct.
docstr_tok: ["Test","that","the","computed","atomic","orbital","value","is","correct","."]
code: def test_molecular_orbital(
      self, symbols, geometry, index, position, ref_value
  ):
      r"""Test that the computed atomic orbital value is correct."""
      mol = qchem.Molecule(symbols, geometry)
  
      x, y, z = position
      _ = qchem.scf(mol)()
      mo = mol.molecular_orbital(index)
      mo_value = mo(x, y, z)
  
      assert np.allclose(mo_value, ref_value)
  
file_path: pennylane/tests/qchem/test_molecule.py
imports: import pytest
  from pennylane import numpy
  from pennylane import qchem
label_desc: Use image node_id 10 for calling the TestMolecule obj's underlying member method code with example usage: obj.test_molecular_orbital(symbols, geometry, index, position, ref_value) without return types