Example #1
0
 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)
Example #2
0
 def testTVPopular(self):
     tmdb = TMDB(TMDB_API_KEY)
     tv = tmdb.TV()
     response = tv.popular()
     self.assertTrue(hasattr(tv, 'results'))
Example #3
0
 def testTVTopRated(self):
     tmdb = TMDB(TMDB_API_KEY)
     tv = tmdb.TV()
     response = tv.top_rated()
     self.assertTrue(hasattr(tv, 'results'))
Example #4
0
 def testTVTranslations(self):
     id = 1396
     tmdb = TMDB(TMDB_API_KEY)
     tv = tmdb.TV(id)
     response = tv.translations()
     self.assertTrue(hasattr(tv, 'translations'))
Example #5
0
 def testTVImages(self):
     id = 1396
     tmdb = TMDB(TMDB_API_KEY)
     tv = tmdb.TV(id)
     response = tv.images()
     self.assertTrue(hasattr(tv, 'backdrops'))
Example #6
0
 def testTVCredits(self):
     id = 1396
     tmdb = TMDB(TMDB_API_KEY)
     tv = tmdb.TV(id)
     response = tv.credits()
     self.assertTrue(hasattr(tv, 'cast'))