Replacing self.assertEqual([1, 2], range(1, 3)) with self.assertEqual([1, 2], [x for x in range(1, 3)]) for avoiding an error when running the test generate test cases (with --gen-kata option) in Python 3.x