def test_safe_string(self):
""" Test that the output of the render method is marked safe.
The output from MarkdownRenderer should be marked safe as it
has been sanitized with the bleach library.
"""
text = 'test'
result = self.renderer.render(text)
self.assertTrue(type(result) is SafeText)
test_markup_renderers.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录