Beispiel #1
0
 def testTVSeasonsImages(self):
     id = 3572
     season_number = 1
     tmdb = TMDB(TMDB_API_KEY)
     tv_seasons = tmdb.TV_Seasons(id, season_number)
     response = tv_seasons.images()
     self.assertTrue(hasattr(tv_seasons, 'posters'))
Beispiel #2
0
 def testTVSeasonsCredits(self):
     id = 3572
     season_number = 1
     tmdb = TMDB(TMDB_API_KEY)
     tv_seasons = tmdb.TV_Seasons(id, season_number)
     response = tv_seasons.credits()
     self.assertTrue(hasattr(tv_seasons, 'crew'))
Beispiel #3
0
 def testTVSeasonsExternalIds(self):
     id = 3572
     season_number = 1
     tvdb_id = 2547
     tmdb = TMDB(TMDB_API_KEY)
     tv_seasons = tmdb.TV_Seasons(id, season_number)
     response = tv_seasons.external_ids()
     self.assertEqual(tv_seasons.tvdb_id, tvdb_id)
Beispiel #4
0
 def testTVSeasonsInfo(self):
     id = 3572
     season_number = 1
     name = 'Season 1'
     tmdb = TMDB(TMDB_API_KEY)
     tv_seasons = tmdb.TV_Seasons(id, season_number)
     response = tv_seasons.info()
     self.assertEqual(tv_seasons.name, name)