def METHOD_NAME(self):
    with tempfile.NamedTemporaryFile() as ftmp:
        rho = cubegen.density(mol, ftmp.name, mf.make_rdm1(),
                              nx=10, ny=10, nz=10)
        self.assertEqual(rho.shape, (10,10,10))
        self.assertAlmostEqual(lib.fp(rho), -0.3740462814001553, 5)
        rho = cubegen.density(mol, ftmp.name, mf.make_rdm1(),
                              nx=10, ny=10, nz=10, resolution=0.5)
        self.assertEqual(rho.shape, (12,18,15))
        self.assertAlmostEqual(lib.fp(rho), -1.007950007160415, 5)