'Check if the iteration objects are the same.'

def check_iteration(self, tko_iterations, pb_iterations):

    for (tko_iteration, pb_iteration) in zip(tko_iterations, pb_iterations):
        self.assertEqual(tko_iteration.index, pb_iteration.index)
        self.check_dict(tko_iteration.attr_keyval, self.convert_keyval_to_dict(pb_iteration, 'attr_keyval'))
        self.check_dict(tko_iteration.perf_keyval, self.convert_keyval_to_dict(pb_iteration, 'perf_keyval'))
