def test_fitness_called_for_starting_population(self):
        start_pop = [1, 2, 3]
        mock_fitness = MagicMock(return_value=None)
        ga = genetic_algorithm(start_pop, mock_fitness, None, None)
        result = ga.next()
        self.assertEqual(len(start_pop), mock_fitness.call_count,
            "Fitness function not called for each genome.")
strict static key enforcement
dataset/ETHPy150Open ntoll/foox/test/test_ga.py/TestGeneticAlgorithm.test_fitness_called_for_starting_population--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Metadata.__setitem__