aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-10-11 14:33:26 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-10-11 14:33:26 +0200
commit91dbaef40692a68a53aa74858f538a5699bae9ea (patch)
treedc4278c41c2ebeed5b0bf6d6dada3514bdee04d9 /test
parent9026dd3858050db071b15db90cd953f7ab3de6c3 (diff)
[nhl] Add an extractor for videocenter's categories (#1586)
It downloads the last 12 videos.
Diffstat (limited to 'test')
-rw-r--r--test/test_playlists.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index c33511333..de8bd298a 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -16,6 +16,7 @@ from youtube_dl.extractor import (
UstreamChannelIE,
SoundcloudUserIE,
LivestreamIE,
+ NHLVideocenterIE,
)
from youtube_dl.utils import *
@@ -74,5 +75,14 @@ class TestPlaylists(unittest.TestCase):
self.assertEqual(result['title'], u'TEDCity2.0 (English)')
self.assertTrue(len(result['entries']) >= 4)
+ def test_nhl_videocenter(self):
+ dl = FakeYDL()
+ ie = NHLVideocenterIE(dl)
+ result = ie.extract('http://video.canucks.nhl.com/videocenter/console?catid=999')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], u'999')
+ self.assertEqual(result['title'], u'Highlights')
+ self.assertEqual(len(result['entries']), 12)
+
if __name__ == '__main__':
unittest.main()