def testTVExternalIds(self): id = 1396 imdb_id = 'tt0903747' tmdb = TMDB(TMDB_API_KEY) tv = tmdb.TV(id) response = tv.external_ids() self.assertEqual(tv.imdb_id, imdb_id)
def testTVPopular(self): tmdb = TMDB(TMDB_API_KEY) tv = tmdb.TV() response = tv.popular() self.assertTrue(hasattr(tv, 'results'))
def testTVTopRated(self): tmdb = TMDB(TMDB_API_KEY) tv = tmdb.TV() response = tv.top_rated() self.assertTrue(hasattr(tv, 'results'))
def testTVTranslations(self): id = 1396 tmdb = TMDB(TMDB_API_KEY) tv = tmdb.TV(id) response = tv.translations() self.assertTrue(hasattr(tv, 'translations'))
def testTVImages(self): id = 1396 tmdb = TMDB(TMDB_API_KEY) tv = tmdb.TV(id) response = tv.images() self.assertTrue(hasattr(tv, 'backdrops'))
def testTVCredits(self): id = 1396 tmdb = TMDB(TMDB_API_KEY) tv = tmdb.TV(id) response = tv.credits() self.assertTrue(hasattr(tv, 'cast'))