def METHOD_NAME(self):
    """
    This test case tests that mom does not truncate the value of
    PBS_MOM_NODE_NAME when it is an ipaddress
    """
    ipaddr = socket.gethostbyname(self.mom.hostname)
    self.du.set_pbs_config(hostname=self.mom.shortname,
                           confs={'PBS_MOM_NODE_NAME': ipaddr})
    # Restart PBS for changes
    self.server.restart()
    self.mom.restart()
    # add hook
    a = {'event': 'execjob_begin', 'enabled': 'True'}
    hook_name = "begin"
    hook_body = """