def test_a_project_cannot_be_created_as_published(self):
"""Test a project cannot be created directly as published"""
published_project = ProjectFactory.build(published=True)
assert_raises(Forbidden, ensure_authorized_to, 'create', published_project)
test_project_auth.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录