def METHOD_NAME(self):
    pmol = mol.copy()
    pmol.cart = True
    nao = pmol.nao_nr()
    numpy.random.seed(1)
    mo = numpy.random.random((nao,4))
    eri = ao2mo.kernel(pmol, mo)
    self.assertAlmostEqual(lib.fp(eri), -977.99841341828437, 9)
    eri = ao2mo.kernel(mol, mo, intor='int2e_cart')
    self.assertAlmostEqual(lib.fp(eri), -977.99841341828437, 9)