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

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

        ppts = Participant.get_for_classroom(p1.team_id, 'Classroom_001')
        self.assertEqual({p1.uid, p2.uid}, set(p.uid for p in ppts))