summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2013-07-29 13:12:09 +0200
committerJaime Marquínez Ferrándiz <[email protected]>2013-07-29 13:12:09 +0200
commitcaeefc29ebce8dbfb0c25a79887719055276c9eb (patch)
treead086bcdc90395225fc6cd88ada58e293542521f /test
parenta3c736def2058547e2c9e9fa4013f7c547c72c55 (diff)
downloadyoutube-dl-caeefc29ebce8dbfb0c25a79887719055276c9eb.tar.gz
youtube-dl-caeefc29ebce8dbfb0c25a79887719055276c9eb.zip
[vimeo] add an extractor for channels
Diffstat (limited to 'test')
-rw-r--r--test/test_playlists.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index f8cc75afb..65de3a55c 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.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 DailymotionPlaylistIE
+from youtube_dl.extractor import DailymotionPlaylistIE, VimeoChannelIE
from youtube_dl.utils import *
from helper import FakeYDL
@@ -26,5 +26,13 @@ class TestPlaylists(unittest.TestCase):
self.assertEqual(result['title'], u'SPORT')
self.assertTrue(len(result['entries']) > 20)
+ def test_vimeo_channel(self):
+ dl = FakeYDL()
+ ie = VimeoChannelIE(dl)
+ result = ie.extract('http://vimeo.com/channels/tributes')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['title'], u'Vimeo Tributes')
+ self.assertTrue(len(result['entries']) > 24)
+
if __name__ == '__main__':
unittest.main()