def test_project_friend_cancel(self, project, admin_user, proj_updater): project_update = ProjectUpdate(project=project, created_by=admin_user) access = ProjectUpdateAccess(proj_updater) assert not access.can_cancel(project_update)
def test_project_self_cancel(self, project, proj_updater): project_update = ProjectUpdate(project=project, created_by=proj_updater) access = ProjectUpdateAccess(proj_updater) assert access.can_cancel(project_update)