def test_famous_athlete(self): ath = athletes.get_athlete(athlete_id=46473) self.assertEqual(ath['club'], 'Blackheath & Bromley')
def test_random_string(self): with self.assertRaises(exceptions.QueryError): athletes.get_athlete(athlete_id='gerogiegn')
def test_non_existing_athlete_id(self): with self.assertRaises(exceptions.QueryError): athletes.get_athlete(athlete_id=111111)
def test_coach_athlete_id(self): ath = athletes.get_athlete(athlete_id=94998) self.assertEqual(ath['club'], 'Blackheath & Bromley')
def test_specific_athlete_id(self): ath = athletes.get_athlete(athlete_id=522041) self.assertEqual(ath['club'], 'Sutton & District')