From 8aea1bd6e2eea8ed7ef3fa13993bbe093f599594 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 20 Mar 2017 01:12:20 +0000 Subject: tests: Add `TestMDLSLogger.test_critical`. * tests/test_markdown_link_style/test_logging.py (TestMDLSLogger.test_critical): Add test method. --- tests/test_markdown_link_style/test_logging.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_markdown_link_style/test_logging.py b/tests/test_markdown_link_style/test_logging.py index 3ccf72c..d4aea87 100644 --- a/tests/test_markdown_link_style/test_logging.py +++ b/tests/test_markdown_link_style/test_logging.py @@ -53,5 +53,10 @@ class TestMDLSLogger(object): self.logger.error(log_msg) assert self.stream.getvalue().strip('\n') == log_msg + def test_critical(self): + log_msg = 'DEBUG::CRITICAL' + self.logger.critical(log_msg) + assert self.stream.getvalue().strip('\n') == log_msg + def teardown(self): pass -- cgit v1.2.3