コード例 #1
0
 def test_famous_athlete(self):
     ath = athletes.get_athlete(athlete_id=46473)
     self.assertEqual(ath['club'], 'Blackheath & Bromley')
コード例 #2
0
 def test_random_string(self):
     with self.assertRaises(exceptions.QueryError):
         athletes.get_athlete(athlete_id='gerogiegn')
コード例 #3
0
 def test_non_existing_athlete_id(self):
     with self.assertRaises(exceptions.QueryError):
         athletes.get_athlete(athlete_id=111111)
コード例 #4
0
 def test_coach_athlete_id(self):
     ath = athletes.get_athlete(athlete_id=94998)
     self.assertEqual(ath['club'], 'Blackheath & Bromley')
コード例 #5
0
 def test_specific_athlete_id(self):
     ath = athletes.get_athlete(athlete_id=522041)
     self.assertEqual(ath['club'], 'Sutton & District')