def test_canonicalize(self):
    (mo, ci, mo_e) = mcr.canonicalize()
    self.assertAlmostEqual(numpy.linalg.norm(mo), 9.926060859497724, 7)
    (mo, ci, mo_e) = mcr.canonicalize(eris=mcr.ao2mo(mcr.mo_coeff))
    self.assertAlmostEqual(numpy.linalg.norm(mo), 9.926060859497724, 7)
def test_canonicalize(self):
    (mo, ci, mo_e) = mcr.canonicalize()
    self.assertAlmostEqual(numpy.linalg.norm(mo), 9.926060859497724, 7)
    (mo, ci, mo_e) = mcr.canonicalize(eris=mcr.ao2mo(mcr.mo_coeff))
    self.assertAlmostEqual(numpy.linalg.norm(mo), 9.926060859497724, 7)