test_urls.py 文件源码

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

项目:rovercode-web 作者: rovercode 项目源码 文件源码
def test_post_edit_load_resolve(self):
        """/blog/post-edit/f1rst-p0st should resolve to blog:post_edit."""
        match = resolve('/blog/post-edit/f1rst-p0st/')
        self.assertEqual(match.view_name, 'blog:post_edit')
        self.assertEqual(match.kwargs['slug'], 'f1rst-p0st')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号