def test_get_subtitles_bad_language(self):
     subs = subtitles_scraper.get_subtitles('1253', 'panda')
     # It returns the English subtitles :(
     self.assertEqual('You all know the truth of what I\'m going to say.', subs[0]['content'])
 def test_get_subtitles_bad_language(self):
     subs = subtitles_scraper.get_subtitles("1253", "panda")
     # Yes, it returns the English subtitles - so we have to parse flashVars to know whether they exist for a particular language
     self.assertEqual("You all know the truth of what I'm going to say.", subs[0]["content"])
Ejemplo n.º 3
0
 def test_get_subtitles_bad_language(self):
     subs = subtitles_scraper.get_subtitles('1253', 'panda', None)
     # It returns the English subtitles :(
     self.assertEqual('You all know the truth of what I\'m going to say.',
                      subs[0]['content'])