Exemple #1
0
 def test_surname(self):
     coach = coaches.search_coaches(surname='smith')
     self.assertEqual(len(coach), 95)
Exemple #2
0
 def test_firstname(self):
     coach = coaches.search_coaches(firstname='John')
     self.assertEqual(len(coach), 225)
Exemple #3
0
 def test_non_exisiting_athlete(self):
     with self.assertRaises(exceptions.QueryError):
         coaches.search_coaches('ouoiubui')
Exemple #4
0
 def test_no_search(self):
     with self.assertRaises(exceptions.QueryError):
         coaches.search_coaches()
Exemple #5
0
 def test_specific_person(self):
     coach = coaches.search_coaches(firstname='alex',
                                    surname='abbott',
                                    club='sutton')
     self.assertEqual(coach, '380620')
Exemple #6
0
 def test_club(self):
     coach = coaches.search_coaches(club='sutton')
     self.assertEqual(len(coach), 41)