markdown-link-style

switch between inline and footnote link style in markdown documents.
git clone git://git.ricketyspace.net/markdown-link-style.git
Log | Files | Refs

commit 366089f82add405801daaf8dac586d29a9c76025
parent 8c724cbb7bf8c120131db9aba3c1921172b591dc
Author: jantwisted <janith@member.fsf.org>
Date:   Sun, 26 Feb 2017 12:41:25 +0530

unit tests for markdown_link_style.logging module

Diffstat:
markdown_link_style/logging.py | 17+++++++++--------
tests/test_mdl_style.py | 22++++++++++++++++++++++
2 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/markdown_link_style/logging.py b/markdown_link_style/logging.py @@ -28,23 +28,23 @@ class MDLSLogger(object): def __init__(self, name): self.logger = logging.getLogger(name) - def debug(msg, *args, **kwargs): + def debug(self, msg, *args, **kwargs): self.logger.debug(msg, *args, **kwargs) - def info(msg, *args, **kwargs): + def info(self, msg, *args, **kwargs): self.logger.info(msg, *args, **kwargs) - def warning(msg, *args, **kwargs): + def warning(self, msg, *args, **kwargs): self.logger.warning(msg, *args, **kwargs) - def error(msg, *args, **kwargs): + def error(self, msg, *args, **kwargs): self.logger.error(msg, *args, **kwargs) - def critical(msg, *args, **kwargs): + def critical(self, msg, *args, **kwargs): self.logger.critical(msg, *args, **kwargs) - def log(msg, *args, **kwargs): + def log(self, msg, *args, **kwargs): self.logger.log(msg, *args, **kwargs) - def exception(msg, *args, **kwargs): - self.logger.exception(msg, *args, **kwargs) + def exception(self, msg, *args, **kwargs): + self.logger.exception(msg, *args, **kwargs)+ \ No newline at end of file diff --git a/tests/test_mdl_style.py b/tests/test_mdl_style.py @@ -145,3 +145,24 @@ class TestLSRendererFN(object): def teardown(self): pass + + +class TestMDLSLogger(object): + """Test class for mdl_style.MDLSLogger footnote link style. + + """ + + def setup(self): + self.logger = MDLSLogger('DebugTest') + + def test_debug(self): + self.logger.debug('DEBUG::MSG') + + def test_info(self): + self.logger.info('INFO::MSG') + + def test_warning(self): + self.logger.warning('WARNING::MSG') + + def teardown(self): + pass+ \ No newline at end of file