summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2015-03-11 22:00:37 +0600
committerSergey M․ <[email protected]>2015-03-11 22:00:37 +0600
commit7e195d0e92772b2ea3c748e319574a81f807e807 (patch)
tree02b5c76783e962ce8e78e7a9fc30b543da20e55f /test
parente04793401d909092b88ce74c580e08f525a914da (diff)
downloadyoutube-dl-7e195d0e92772b2ea3c748e319574a81f807e807.tar.gz
youtube-dl-7e195d0e92772b2ea3c748e319574a81f807e807.zip
[funnyordie] Add subtitles test
Diffstat (limited to 'test')
-rw-r--r--test/test_subtitles.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_subtitles.py b/test/test_subtitles.py
index 3f2d8a2ba..891ee620b 100644
--- a/test/test_subtitles.py
+++ b/test/test_subtitles.py
@@ -26,6 +26,7 @@ from youtube_dl.extractor import (
VikiIE,
ThePlatformIE,
RTVEALaCartaIE,
+ FunnyOrDieIE,
)
@@ -320,5 +321,17 @@ class TestRtveSubtitles(BaseTestSubtitles):
self.assertEqual(md5(subtitles['es']), '69e70cae2d40574fb7316f31d6eb7fca')
+class TestFunnyOrDieSubtitles(BaseTestSubtitles):
+ url = 'http://www.funnyordie.com/videos/224829ff6d/judd-apatow-will-direct-your-vine'
+ IE = FunnyOrDieIE
+
+ def test_allsubtitles(self):
+ self.DL.params['writesubtitles'] = True
+ self.DL.params['allsubtitles'] = True
+ subtitles = self.getSubtitles()
+ self.assertEqual(set(subtitles.keys()), set(['en']))
+ self.assertEqual(md5(subtitles['en']), 'c5593c193eacd353596c11c2d4f9ecc4')
+
+
if __name__ == '__main__':
unittest.main()