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