def METHOD_NAME(self):
    # tests the out-of-core and chkfile support for AGF2 for BeH/cc-pvdz
    gf2 = agf2.UAGF2(self.mf)
    gf2.chkfile = tempfile.NamedTemporaryFile().name
    gf2.max_memory = 1
    gf2.conv_tol = 1e-7
    gf2.run()
    e_ip, v_ip = self.gf2.ipagf2(nroots=1)
    e_ea, v_ea = self.gf2.eaagf2(nroots=1)
    v_ip = np.linalg.norm(v_ip)**2
    v_ea = np.linalg.norm(v_ea)**2
    self.assertAlmostEqual(self.gf2.e_1b, -15.069681001221705  , 6)
    self.assertAlmostEqual(self.gf2.e_2b, -0.049461593728309786, 6)
    self.assertAlmostEqual(e_ip,          0.3003522286132736   , 6)
    self.assertAlmostEqual(v_ip,          0.9962231685493768   , 6)
    self.assertAlmostEqual(e_ea,          0.03781071654337435  , 6)
    self.assertAlmostEqual(v_ea,          0.9740024912068087   , 6)
    gf2.dump_chk()
    gf2 = agf2.UAGF2(self.mf)
    gf2.__dict__.update(agf2.chkfile.load(gf2.chkfile, 'agf2'))
    e_ip, v_ip = self.gf2.ipagf2(nroots=1)
    e_ea, v_ea = self.gf2.eaagf2(nroots=1)
    v_ip = np.linalg.norm(v_ip)**2
    v_ea = np.linalg.norm(v_ea)**2
    self.assertAlmostEqual(self.gf2.e_1b, -15.069681001221705  , 6)
    self.assertAlmostEqual(self.gf2.e_2b, -0.049461593728309786, 6)
    self.assertAlmostEqual(e_ip,          0.3003522286132736   , 6)
    self.assertAlmostEqual(v_ip,          0.9962231685493768   , 6)
    self.assertAlmostEqual(e_ea,          0.03781071654337435  , 6)
    self.assertAlmostEqual(v_ea,          0.9740024912068087   , 6)