diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-09-13 19:55:49 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-09-13 21:34:31 +0200 |
commit | 74ac9bdd82b8a625ea9782251258ab7da1463877 (patch) | |
tree | a9f023d452361aa65cd5289a613f1da8eab9e0f4 /test/test_playlists.py | |
parent | 94518f208799dde250f5fd8dd0ce77dd7ea05b1c (diff) | |
parent | bfd5c93af9f9eee938c628f19c997f999f21c74e (diff) |
Merge pull request #1413 from tewe/master
Add Ustream channel support
Diffstat (limited to 'test/test_playlists.py')
-rw-r--r-- | test/test_playlists.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py index 65de3a55c..4a2e00b01 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, VimeoChannelIE +from youtube_dl.extractor import DailymotionPlaylistIE, VimeoChannelIE, UstreamChannelIE from youtube_dl.utils import * from helper import FakeYDL @@ -34,5 +34,13 @@ class TestPlaylists(unittest.TestCase): self.assertEqual(result['title'], u'Vimeo Tributes') self.assertTrue(len(result['entries']) > 24) + def test_ustream_channel(self): + dl = FakeYDL() + ie = UstreamChannelIE(dl) + result = ie.extract('http://www.ustream.tv/channel/young-americans-for-liberty') + self.assertIsPlaylist(result) + self.assertEqual(result['id'], u'5124905') + self.assertTrue(len(result['entries']) >= 11) + if __name__ == '__main__': unittest.main() |