def test_warn(self):
        self.logger.warn = self._called
        self.notifier.warn("test_event", "test_message")
        if self.called is False:
            self.fail("Did not call logging library correctly.")
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/tests/unit/test_notifier.py/TestLoggingNotifier.test_warn/original