def test_make_rdm12(self):
    dmr = mcscf.addons.make_rdm1(mcr)
    (dm1, dm2) = mcscf.addons.make_rdm12(mcr)
    self.assertTrue(numpy.allclose(dmr, dm1))
    self.assertAlmostEqual(numpy.linalg.norm(dm1), 3.8205551262007567, 6)
    self.assertAlmostEqual(numpy.linalg.norm(dm2), 14.987267883423314, 5)
def test_make_rdm12(self):
    dmr = mcscf.addons.make_rdm1(mcr)
    (dm1, dm2) = mcscf.addons.make_rdm12(mcr)
    self.assertTrue(numpy.allclose(dmr, dm1))
    self.assertAlmostEqual(numpy.linalg.norm(dm1), 3.8205551262007567, 6)
    self.assertAlmostEqual(numpy.linalg.norm(dm2), 14.987267883423314, 5)