示例#1
0
 def test_has_team_api_access(self, username, expected_have_access):
     user = self.users[username]
     self.assertEqual(
         expected_have_access,
         teams_api.has_team_api_access(user, COURSE_KEY1)
     )
示例#2
0
 def test_has_team_api_access(self, username, expected_have_access):
     user = self.users[username]
     assert expected_have_access == teams_api.has_team_api_access(user, COURSE_KEY1)