def METHOD_NAME(self):
    atom = gto.M(atom='Ne 0 0 0', basis='sto-3g', verbose=0)
    mf = scf.RHF(atom)
    energy = mf.kernel()
    C = mf.mo_coeff
    chol = mol.chunked_cholesky(atom, max_error=1e-5)
    mol.ao2mo_chol(chol, C)
    hcore = mf.get_hcore()
    h1e = numpy.dot(C.T, numpy.dot(hcore, C))
    ncore = 1
    ncas = 4
    h1e, chol, efzc = mol.freeze_core(h1e, chol, 0, 1, 4, verbose=False)
    self.assertEqual(h1e.shape, (2,4,4))
    self.assertEqual(chol.shape, (15,16))
    # Check from CASSCF object with same core.
    mc = mcscf.CASSCF(mf, 4, (4,4))
    h1eff, ecore = mc.get_h1eff()
    self.assertAlmostEqual(efzc, ecore)
    self.assertTrue(numpy.allclose(h1eff, h1e, atol=1e-8, rtol=1e-5))