def METHOD_NAME(self):
    si = Molecule.from_smiles("[Si+4]")
    with pytest.raises(ValueError, match="Molecule contains forbidden element 14"):
        si.assign_partial_charges(
            partial_charge_method="_nagl_am1bccelf10",
            toolkit_registry=_NAGLToolkitWrapper(),
        )