def test_selection_function_2(self):
        self.ga.current_generation = self.population
        self.ga.calculate_population_fitness()
        self.ga.tournament_size = 0
        self.ga.selection_function = self.ga.tournament_selection
        individual = self.ga.selection_function(self.ga.current_generation)

        assert len(individual.genes) == 5
        assert individual in self.population
Test tournament selection with tournament size 0
dataset/ETHPy150Open remiomosowon/pyeasyga/tests/test_pyeasyga.py/TestPyeasyga.test_selection_function_2