class_docstr: Tests for generating a molecule object.
class_docstr_tok: ["Tests","for","generating","a","molecule","object","."]
docstr: Test that an error is raised if the molecule has unpaired electrons.
docstr_tok: ["Test","that","an","error","is","raised","if","the","molecule","has","unpaired","electrons","."]
code: def test_openshell_error(self, symbols, geometry, charge, mult):
      r"""Test that an error is raised if the molecule has unpaired electrons."""
      with pytest.raises(
          ValueError, match="Openshell systems are not supported"
      ):
          qchem.Molecule(symbols, geometry, charge=charge, mult=mult)
  
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 3 for calling the TestMolecule obj's underlying member method code with example usage: obj.test_openshell_error(symbols, geometry, charge, mult) without return types