

def test_yields_starting_population(self):
    '\n        Ensures that the first item yielded *is* the starting population.\n        '
    start_pop = [3, 2, 1]
    ga = genetic_algorithm(start_pop, None, None, None)
    self.assertEqual(ga.next(), self, 'Starting population not yielded as first result.')

dataset/ETHPy150Open ntoll/foox/test/test_ga.py TestGeneticAlgorithm.test_yields_starting_population/VarMisuse@45/87 `start_pop`->`self`