'Test prioritization ordering'

def _test_priorities_helper(self, use_metahosts):

    self._create_job_simple([1], use_metahosts)
    self._create_job_simple([2], use_metahosts)
    self._create_job_simple([1, 2], use_metahosts)
    self._create_job_simple([1], use_metahosts, priority=1)
    self._run_scheduler()
    self._assert_job_scheduled_on(4, 1)
    self._assert_job_scheduled_on(2, 2)
    self._check_for_extra_schedulings()
