class_docstr: Tests for generating a molecule object.
class_docstr_tok: ["Tests","for","generating","a","molecule","object","."]
docstr: Test that __repr__ for Molecule returns correct representation.
docstr_tok: ["Test","that","__repr__","for","Molecule","returns","correct","representation","."]
code: def test_repr(self):
      """Test that __repr__ for Molecule returns correct representation."""
  
      symbols, geometry = (
          ["H", "H", "H"],
          np.array([[0.0, 0.0, 0.0], [0.0, 0.0, 1.0], [0.0, 0.0, 2.0]]),
      )
      mol = qchem.Molecule(symbols, geometry, 1)
      assert (
          repr(mol)
          == "<Molecule = H3, Charge: 1, Basis: STO-3G, Orbitals: 3, Electrons: 2>"
      )
  
      symbols, geometry = (
          ["H", "C", "O"],
          np.array([[0.0, 0.0, 0.0], [0.0, 0.0, 1.0], [0.0, 0.0, 2.0]]),
      )
      mol = qchem.Molecule(symbols, geometry, 1)
      assert (
          repr(mol)
          == "<Molecule = CHO, Charge: 1, Basis: STO-3G, Orbitals: 11, Electrons: 14>"
      )
  
      symbols, geometry = (
          ["C", "O"],
          np.array([[0.0, 0.0, 0.0], [0.0, 0.0, 1.0]]),
      )
      mol = qchem.Molecule(symbols, geometry, 0)
      assert (
          repr(mol)
          == "<Molecule = CO, Charge: 0, Basis: STO-3G, Orbitals: 10, Electrons: 14>"
      )
  
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 11 for calling the TestMolecule obj's underlying member method code with example usage: obj.test_repr() without return types