def METHOD_NAME(self):
    emitter_provider_mock = Mock(spec=LoggerProvider)
    emitter_mock = APIGetLogger(
        __name__, logger_provider=emitter_provider_mock
    )
    logger = get_logger(logger_provider=emitter_provider_mock)
    # Make sure debug messages are ignored by default
    logger.debug("Debug message")
    self.assertEqual(emitter_mock.emit.call_count, 0)
    # Assert emit gets called for warning message
    with self.assertLogs(level=logging.WARNING):
        logger.warning("Warning message")
    self.assertEqual(emitter_mock.emit.call_count, 1)