def test_mutate_function(self):
        individual = [0, 1, 1, 0, 1]
        self.ga.mutate_function(individual)
        res = [x == y for (x, y) in zip(individual, [0, 1, 1, 0, 1])]

        assert individual != [0, 1, 1, 0, 1]
        assert res.count(False) == 1
Check that the individual is not the same after mutation
dataset/ETHPy150Open remiomosowon/pyeasyga/tests/test_pyeasyga.py/TestPyeasyga.test_mutate_function