Exemple #1
0
 def test_get_coaches2(self):
     with app.app_context():
         result = Coach.lookup('1870b014-38db-4339-a601-0740c4bdece6')
         self.assertEqual(result['position'], 'Defensive Coordinator')
         self.assertEqual(result['last_name'], 'Pagano')
         self.assertEqual(result['first_name'], 'John')
         self.assertEqual(result['pic_link'], 'http://cdn.fansided.com/wp-content/blogs.dir/229/files/2014/01/7760788.jpg')
         self.assertEqual(result['team'], 'LAC')
Exemple #2
0
 def test_get_coaches1(self):
     with app.app_context():
         result = Coach.lookup('1969df08-6df4-446e-8090-7f6729c22151')
         self.assertEqual(result['position'], 'Offensive Coordinator')
         self.assertEqual(result['last_name'], 'Goodwin')
         self.assertEqual(result['first_name'], 'Harold')
         self.assertEqual(result['pic_link'], 'http://www.gannett-cdn.com/-mm-/a093b53724d06bd26d8faf2b8eb467567a8cc03d/c=71-0-3330-2450&r=x513&c=680x510/local/-/media/2015/08/24/Phoenix/Phoenix/635760457921758000-cards-23.jpg')
         self.assertEqual(result['team'], 'ARI')