':param group_hosts - A sequence of Host ids to test for usability
and eligibility against the Job associated with queue_entry.
:param queue_entry - The HostQueueEntry that these hosts are being
tested for eligibility against.
:return: A subset of group_hosts Host ids that are eligible for the
supplied queue_entry.'

def _get_eligible_host_ids_in_group(self, group_hosts, queue_entry):

    return set((host_id for host_id in group_hosts if (self.is_host_usable(host_id) and self.is_host_eligible_for_job(host_id, queue_entry))))
