def METHOD_NAME(self):
    """
    Test qstat -n output reports the correct node name
    when node is created using IP address as name of the node.
    """
    self.server.manager(MGR_CMD_DELETE, NODE, None, '')
    ipaddr = socket.gethostbyname(self.mom.hostname)
    attr_A = {'Mom': self.mom.hostname}
    self.server.manager(MGR_CMD_CREATE, NODE, id=ipaddr, attrib=attr_A)
    self.server.expect(NODE, {'state': 'free'}, id=ipaddr)
    j = Job(TEST_USER)
    jid = self.server.submit(j)
    self.server.expect(JOB, {'job_state': 'R'}, id=jid)
    qstat_cmd = os.path.join(self.server.pbs_conf['PBS_EXEC'],
                             'bin', 'qstat')
    qstat_cmd_n = [qstat_cmd, '-n', str(jid)]
    ret = self.du.run_cmd(self.server.hostname, cmd=qstat_cmd_n)
    self.assertEqual(ret['rc'], 0,
                     'Qstat returned with non-zero exit status')
    qstat_out = '\n'.join(ret['out'])
    self.assertIn(ipaddr, qstat_out,
                  "Incorrect node name in qstat -n when "
                  "node created using IP address")