예제 #1
0
 def test_get_memberships(self, username, course_ids, team_id,
                          expected_count):
     self.assertEqual(
         CourseTeamMembership.get_memberships(username=username,
                                              course_ids=course_ids,
                                              team_id=team_id).count(),
         expected_count)
예제 #2
0
 def test_get_memberships(self, username, course_ids, team_id, expected_count):
     self.assertEqual(
         CourseTeamMembership.get_memberships(username=username, course_ids=course_ids, team_id=team_id).count(),
         expected_count,
     )
예제 #3
0
 def test_user_in_team_for_course(self, username, course_id, expected_value):
     user = getattr(self, username)
     self.assertEqual(CourseTeamMembership.user_in_team_for_course(user, course_id), expected_value)
예제 #4
0
 def test_user_in_team_for_course(self, username, course_id,
                                  expected_value):
     user = getattr(self, username)
     self.assertEqual(
         CourseTeamMembership.user_in_team_for_course(user, course_id),
         expected_value)