def test_project_init_guess_uhf(self):
    mo1_u = mcscf.addons.project_init_guess(mcu_prg, mfu.mo_coeff)
    for mo1 in mo1_u:
        s1 = reduce(numpy.dot, (mo1.T, mfu_prg.get_ovlp(), mo1))
        self.assertEqual(numpy.count_nonzero((numpy.linalg.eigh(s1)[0] > 1e-10)), s1.shape[0])
        self.assertAlmostEqual(numpy.linalg.norm(s1), 5.291502622129184, 9)
def test_project_init_guess_uhf(self):
    mo1_u = mcscf.addons.project_init_guess(mcu_prg, mfu.mo_coeff)
    for mo1 in mo1_u:
        s1 = reduce(numpy.dot, (mo1.T, mfu_prg.get_ovlp(), mo1))
        self.assertEqual(numpy.count_nonzero((numpy.linalg.eigh(s1)[0] > 1e-10)), s1.shape[0])
        self.assertAlmostEqual(numpy.linalg.norm(s1), 5.291502622129184, 9)