def test_html_formatter_format():
formatter = formatters.HtmlFormatter()
logrecord = logging.makeLogRecord(dict(name='<foo>', func='<module>', msg='Whatsup?', funcName='test'))
s = formatter.format(logrecord)
assert '<foo>' not in s
assert '<module>' not in s
test_formatters.py 文件源码
python
阅读 40
收藏 0
点赞 0
评论 0
评论列表
文章目录