def test_anonymous_user_delete_helpingmaterial(self):
"""Test anonymous users cannot delete helpingmaterials"""
project = ProjectFactory.create(published=True)
helpingmaterial = HelpingMaterialFactory.create(project_id=project.id)
assert_raises(Unauthorized, ensure_authorized_to, 'delete',
helpingmaterial)
test_helpingmaterial.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录