def testCreateTaskAfterClaimEndForStudent(self): """Tests the task creation view after the task claim deadline for student. """ self.timeline.taskClaimEnded() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() url = '/gci/task/create/' + self.org.key().name() response = self.get(url) # Task creation has not started yet self.assertResponseForbidden(response)
def testCreateTaskDuringProgramForStudent(self): """Tests the task creation view during the program for org admin. """ self.timeline.tasksPubliclyVisible() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() url = '/gci/task/create/' + self.org.key().name() response = self.get(url) # Student can't create tasks self.assertResponseForbidden(response)
def testCreateTaskDuringProgramForStudent(self): """Tests the task creation view during the program for org admin. """ self.timeline.tasksPubliclyVisible() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() url = '/gci/task/create/' + self.org.key().name() response = self.get(url) # Student can't create tasks self.assertResponseForbidden(response)
def testCreateTaskBeforeOrgsAnnouncedForStudent(self): """Tests the task creation view before the program is public for org admin. """ self.timeline.orgSignup() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() url = '/gci/task/create/' + self.org.key().name() response = self.get(url) # Task creation has not started yet self.assertResponseForbidden(response)
def testCreateTaskAfterClaimEndForStudent(self): """Tests the task creation view after the task claim deadline for student. """ self.timeline.taskClaimEnded() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() url = '/gci/task/create/' + self.org.key().name() response = self.get(url) # Task creation has not started yet self.assertResponseForbidden(response)
def testCreateTaskBeforeOrgsAnnouncedForStudent(self): """Tests the task creation view before the program is public for org admin. """ self.timeline.orgSignup() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() url = '/gci/task/create/' + self.org.key().name() response = self.get(url) # Task creation has not started yet self.assertResponseForbidden(response)
def testPostClaimEditTaskDuringProgramForStudent(self): """Tests the task post claim editing view during the program for student. """ self.timeline.tasksPubliclyVisible() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() task = self.createTask(status='ActionNeeded') url = '/gci/task/edit/%s/%s' % (self.gci.key().name(), task.key().id()) response = self.get(url) # Student cannot edit task self.assertResponseForbidden(response)
def testPostClaimEditTaskDuringProgramForStudent(self): """Tests the task post claim editing view during the program for student. """ self.timeline.tasksPubliclyVisible() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() task = self.createTask(status='ActionNeeded') url = '/gci/task/edit/%s/%s' % (self.gci.key().name(), task.key().id()) response = self.get(url) # Student cannot edit task self.assertResponseForbidden(response)
def testPostClaimEditTaskAfterClaimEndForStudent(self): """Tests the task post claim editing view after the task claim deadline for student. """ self.timeline.taskClaimEnded() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() task = self.createTask(status='ClaimRequested') url = '/gci/task/edit/%s/%s' % (self.gci.key().name(), task.key().id()) response = self.get(url) # Task post claim editing has not started yet self.assertResponseForbidden(response)
def testPostClaimEditTaskBeforeOrgsAnnouncedForStudent(self): """Tests the task post claim editing view before the program is public for student. """ self.timeline.orgSignup() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() task = self.createTask(status='NeedsWork') url = '/gci/task/edit/%s/%s' % (self.gci.key().name(), task.key().id()) response = self.get(url) # Task post claim editing has not started yet self.assertResponseForbidden(response)
def testPostClaimEditTaskAfterClaimEndForStudent(self): """Tests the task post claim editing view after the task claim deadline for student. """ self.timeline.taskClaimEnded() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() task = self.createTask(status='ClaimRequested') url = '/gci/task/edit/%s/%s' % (self.gci.key().name(), task.key().id()) response = self.get(url) # Task post claim editing has not started yet self.assertResponseForbidden(response)
def testPostClaimEditTaskBeforeOrgsAnnouncedForStudent(self): """Tests the task post claim editing view before the program is public for student. """ self.timeline.orgSignup() profile_helper = GCIProfileHelper(self.gci, self.dev_test) profile_helper.createStudent() task = self.createTask(status='NeedsWork') url = '/gci/task/edit/%s/%s' % (self.gci.key().name(), task.key().id()) response = self.get(url) # Task post claim editing has not started yet self.assertResponseForbidden(response)