diff options
| author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-09-14 21:41:49 +0200 | 
|---|---|---|
| committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-09-14 21:41:49 +0200 | 
| commit | 92790f4e542fc3d5f4cc02a647a2695d9175d464 (patch) | |
| tree | aae9f0a56d2f5cbbfbf014481f2412995c9d40ee /test | |
| parent | 471a5ee908ee765c1ba1ff6a41051bcf71065064 (diff) | |
[soundcloud] Add an extractor for users (closes #1426)
Diffstat (limited to 'test')
| -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 4a2e00b01..d079a4f23 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, UstreamChannelIE +from youtube_dl.extractor import DailymotionPlaylistIE, VimeoChannelIE, UstreamChannelIE, SoundcloudUserIE  from youtube_dl.utils import *  from helper import FakeYDL @@ -42,5 +42,13 @@ class TestPlaylists(unittest.TestCase):          self.assertEqual(result['id'], u'5124905')          self.assertTrue(len(result['entries']) >= 11) +    def test_soundcloud_user(self): +        dl = FakeYDL() +        ie = SoundcloudUserIE(dl) +        result = ie.extract('https://soundcloud.com/the-concept-band') +        self.assertIsPlaylist(result) +        self.assertEqual(result['id'], u'9615865') +        self.assertTrue(len(result['entries']) >= 12) +  if __name__ == '__main__':      unittest.main()  | 
