def METHOD_NAME(self):
    with init_run(mode="debug", flush_period=0.5, monitoring_namespace="watching") as exp:
        handler = NeptuneHandler(run=exp)
        logger = logging.getLogger()
        logger.addHandler(handler)
        self._log_messages(logger)
        log_entries = list(exp["watching"]["python_logger"].fetch_values().value)
        self.assertListEqual(log_entries, ["error message", "test message"])