code: def is_state(self, status):
          
          if status == self.state:
              return True
          # Now low status
          if status == 'o' and self.state == u'UP':
              return True
          if status == 'd' and self.state == u'DOWN':
              return True
          if status in ['u', 'x'] and self.state == u'UNREACHABLE':
              return True
          return False
docs: Return if status match the current host status
  
          :param status: status to compare ( "o", "d", "x"). Usually comes from config files
          :type status: str
          :return: True if status <=> self.status, otherwise False
          :rtype: bool