aboutsummaryrefslogtreecommitdiff
path: root/test/test_youtube_lists.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-07-01 18:21:36 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-07-01 18:21:36 +0200
commit2db67bc0f40d8a2938145a6630901360834cf387 (patch)
tree4d9301a3f01b2860a5cfd6494539bbe874665eae /test/test_youtube_lists.py
parent7dba9cd0390f3cc89b1ff12ea1a4db6e8ddfd74b (diff)
parent75dff0eef753f7bbef2947449441f4f6b2e13547 (diff)
Merge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'test/test_youtube_lists.py')
-rw-r--r--test/test_youtube_lists.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py
index 4486b7eb0..dd9e292b0 100644
--- a/test/test_youtube_lists.py
+++ b/test/test_youtube_lists.py
@@ -8,7 +8,7 @@ import json
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from youtube_dl.extractor import YoutubeUserIE, YoutubePlaylistIE, YoutubeIE, YoutubeChannelIE
+from youtube_dl.extractor import YoutubeUserIE, YoutubePlaylistIE, YoutubeIE, YoutubeChannelIE, YoutubeShowIE
from youtube_dl.utils import *
from helper import FakeYDL
@@ -88,5 +88,11 @@ class TestYoutubeLists(unittest.TestCase):
result = ie.extract('PLtPgu7CB4gbY9oDN3drwC3cMbJggS7dKl')[0]
self.assertEqual(len(result['entries']), 2)
+ def test_youtube_show(self):
+ dl = FakeYDL()
+ ie = YoutubeShowIE(dl)
+ result = ie.extract('http://www.youtube.com/show/airdisasters')
+ self.assertTrue(len(result) >= 4)
+
if __name__ == '__main__':
unittest.main()