def METHOD_NAME(self):
    """
    Submit two jobs, switch their order using qorder and then check if the
    jobs are selected to run in the newly created order.
    """
    a = {'resources_available.ncpus': 1}
    self.server.manager(MGR_CMD_SET, NODE, a, self.mom.shortname)
    a = {'scheduling': 'false'}
    self.server.manager(MGR_CMD_SET, SERVER, a)
    j1 = Job(TEST_USER)
    j1.set_sleep_time(10)
    j2 = Job(TEST_USER)
    j2.set_sleep_time(10)
    jid1 = self.server.submit(j1)
    jid2 = self.server.submit(j2)
    rc = self.server.orderjob(jobid1=jid1, jobid2=jid2)
    self.assertEqual(rc, 0)
    a = {'scheduling': 'true'}
    self.server.manager(MGR_CMD_SET, SERVER, a)
    a = {'server_state': 'Scheduling'}
    self.server.expect(SERVER, a, op=NE)
    jid2 = jid2.split('.')[0]
    cycle = self.scheduler.cycles(start=self.server.ctime, lastN=1)
    cycle = cycle[0]
    firstconsidered = cycle.political_order[0]
    msg = 'testinfo: first job considered [' + str(firstconsidered) + \
          '] == second submitted [' + str(jid2) + ']'
    self.logger.info(msg)
    self.assertEqual(firstconsidered, jid2)