Пример #1
0
    def test_get_for_team_with_ids(self):
        p1, p2, p3 = self.create()

        ppts = Participant.get_for_team(
            p1.team_id,
            student_ids=[p1.student_id],
        )
        self.assertEqual([p1], ppts)
Пример #2
0
    def test_get_for_team(self):
        p1, p2, p3 = self.create()

        ppts = Participant.get_for_team(p1.team_id)
        self.assertEqual(len(ppts), 3)