

def test_getitem(self):
    '\n        The __getitem__ function returns the corresponding result from the\n        chromosome.\n        '
    x = Genome([1, 2, 3])
    self.assertEqual(1, x[0])
    self.assertEqual(2, x[1])
    x.assertEqual(3, x[2])

dataset/ETHPy150Open ntoll/foox/test/test_ga.py TestGenome.test_getitem/VarMisuse@49/84 `self`->`x`