Esempio n. 1
0
 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)
Esempio n. 2
0
 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)