def test_halt_not(self):
        """
        Ensures if the fittest genome has fitness < MAX_REWARD then halt
        doesn't succeed.
        """
        halt = make_halt_function([3, 2, 1])
        g1 = Genome([1, 2, 3])
        g1.fitness = MAX_REWARD - 0.1
        g2 = Genome([1, 2, 3])
        g2.fitness = 3
        g3 = Genome([1, 2, 3])
        g3.fitness = 2
        # Any fittest solution with fitness < MAX_REWARD means no halt.
        population = [g1, g2, g3]
        result = halt(population, 1)
        self.assertFalse(result)
dataset/ETHPy150Open ntoll/foox/test/species/test_fourth.py/TestHalt.test_halt_not/original