def test_len(self):
        x = Genome([1, 2, 3])
        self.assertEqual(3, len(x))
The __len__ function returns the length of the chromosome.
dataset/ETHPy150Open ntoll/foox/test/test_ga.py/TestGenome.test_len