def test_log_critical_messages_to_console(self): # Arrange logger = Logger(clock=TestClock(), level_stdout=LogLevel.CRITICAL) logger_adapter = LoggerAdapter(component="TEST_LOGGER", logger=logger) # Act logger_adapter.critical("This is a log message.") # Assert assert True # No exceptions raised
def test_log_critical_messages_to_console(self): # Arrange logger = TestLogger(clock=TestClock(), level_console=LogLevel.CRITICAL) logger_adapter = LoggerAdapter("TEST_LOGGER", logger) # Act logger_adapter.critical("This is a log message.") # Assert self.assertTrue(True) # No exception raised
def test_can_log_critical_messages_to_console(self): # Arrange logger = TestLogger(level_console=LogLevel.CRITICAL) logger_adapter = LoggerAdapter('TEST_LOGGER', logger) # Act logger_adapter.critical("This is a log message.") # Assert self.assertTrue(True) # Does not raise errors.