Beispiel #1
0
 def test_getPosters_When_program_is_not_movie_Then_returns_empty_list(
         self):
     program = TVProgram({
         'title': 'Seinfeld',
         'category_type': 'series'
     },
                         translator=Mock())
     provider = TheMovieDbFanartProvider()
     self.assertListEqual([], provider.getPosters(program))
Beispiel #2
0
 def test_getPosters_When_program_is_movie_Then_returns_posters(self):
     # Setup
     program = TVProgram({'title': 'Ghostbusters', 'category_type':'movie'}, translator=Mock())
     provider = TheMovieDbFanartProvider(nextProvider=None)
     
     # Test
     posters = provider.getPosters(program)
     
     # Verify
     log.debug('Posters = %s' % posters)
     for p in posters:
         self.assertEqual('http', p[0:4])
Beispiel #3
0
 def test_getPosters_When_program_is_movie_Then_returns_posters(self):
     # Setup
     program = TVProgram({'title': 'Ghostbusters', 'category_type':'movie'}, translator=Mock())
     provider = TheMovieDbFanartProvider()
     
     # Test
     posters = provider.getPosters(program)
     
     # Verify
     log.debug('Posters = %s' % posters)
     for p in posters:
         self.assertEqual('http', p[0:4])
Beispiel #4
0
 def test_getPosters_When_program_is_not_movie_Then_returns_empty_list(self):
     program = TVProgram({'title': 'Seinfeld', 'category_type':'series'}, translator=Mock())
     provider = TheMovieDbFanartProvider(nextProvider=None)
     self.assertListEqual([], provider.getPosters(program))
Beispiel #5
0
 def getProvider(self):
     return TheMovieDbFanartProvider()
Beispiel #6
0
 def getProvider(self):
     return TheMovieDbFanartProvider(nextProvider=None)