Exemple #1
0
 def test_iter_students_with_feedback_that_is_candidate_but_not_in_related(self):
     self._add_bad_feedback(self.testhelper.sub_p1_a1_stud1)
     grouper = GroupsGroupedByRelatedStudentAndAssignment(self.testhelper.sub_p1)
     ignored = list(grouper.iter_students_with_feedback_that_is_candidate_but_not_in_related())
     self.assertEquals(len(ignored), 1)
     grouplists = list(ignored[0].iter_groups_by_assignment())
     self.assertEquals(len(grouplists), 3) # Should match the number of assignments
     self.assertEquals(grouplists[0][0].feedback.grade, '0/100')
Exemple #2
0
 def test_iter_students_with_feedback_that_is_candidate_but_not_in_related_none(self):
     grouper = GroupsGroupedByRelatedStudentAndAssignment(self.testhelper.sub_p1)
     self.assertEquals(len(list(grouper.iter_students_with_feedback_that_is_candidate_but_not_in_related())), 0)
     self.assertEquals(len(list(grouper.iter_relatedstudents_with_results())), 0)