def testTVEpisodesImages(self): id = 1396 season_number = 1 episode_number = 1 tmdb = TMDB(TMDB_API_KEY) tv_episodes = tmdb.TV_Episodes(id, season_number, episode_number) response = tv_episodes.images() self.assertTrue(hasattr(tv_episodes, 'stills'))
def testTVEpisodesCredits(self): id = 1396 season_number = 1 episode_number = 1 tmdb = TMDB(TMDB_API_KEY) tv_episodes = tmdb.TV_Episodes(id, season_number, episode_number) response = tv_episodes.credits() self.assertTrue(hasattr(tv_episodes, 'guest_stars'))
def testTVEpisodesExternalIds(self): id = 1396 season_number = 1 episode_number = 1 imdb_id = 'tt0959621' tmdb = TMDB(TMDB_API_KEY) tv_episodes = tmdb.TV_Episodes(id, season_number, episode_number) response = tv_episodes.external_ids() self.assertEqual(tv_episodes.imdb_id, imdb_id)
def testTVEpisodesInfo(self): id = 1396 season_number = 1 episode_number = 1 name = 'Pilot' tmdb = TMDB(TMDB_API_KEY) tv_episodes = tmdb.TV_Episodes(id, season_number, episode_number) response = tv_episodes.info() self.assertEqual(tv_episodes.name, name)