test_markup_renderers.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:django_simple_forums 作者: cdriehuys 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号