def METHOD_NAME(self, host_pre):
    logging.debug('Test host: {0}'.format(host_pre))
    if is_conn_to_db(
            host=host_pre,
            db=self.args.dbname,
            port=self.args.port,
            user=self.args.username,
            paswd=self.args.password):
        self.args.hostname = host_pre
        os.environ['PGHOST'] = self.args.hostname
        logging.debug('Connected via: {0}'.format(host_pre))
        return True
    return False