diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-05-05 03:12:41 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-05-05 03:15:17 +0200 |
commit | 20991253334c069efac6986bb51cc28058809026 (patch) | |
tree | ee97223f3e9fea467dfd38ffc1ddc6a5a14ff51e /test/test_playlists.py | |
parent | b48f147d5a36b16e421b9b91fcc72b62e695c948 (diff) |
[soundcloud/generic] Add support for playlists
Diffstat (limited to 'test/test_playlists.py')
-rw-r--r-- | test/test_playlists.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py index 02fcde1f7..fe6274e60 100644 --- a/test/test_playlists.py +++ b/test/test_playlists.py @@ -10,6 +10,7 @@ import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from test.helper import ( + assertRegexpMatches, expect_info_dict, FakeYDL, ) @@ -25,6 +26,7 @@ from youtube_dl.extractor import ( UstreamChannelIE, SoundcloudSetIE, SoundcloudUserIE, + SoundcloudPlaylistIE, LivestreamIE, NHLVideocenterIE, BambuserChannelIE, @@ -124,6 +126,17 @@ class TestPlaylists(unittest.TestCase): self.assertEqual(result['id'], '9615865') self.assertTrue(len(result['entries']) >= 12) + def test_soundcloud_playlist(self): + dl = FakeYDL() + ie = SoundcloudPlaylistIE(dl) + result = ie.extract('http://api.soundcloud.com/playlists/4110309') + self.assertIsPlaylist(result) + self.assertEqual(result['id'], '4110309') + self.assertEqual(result['title'], 'TILT Brass - Bowery Poetry Club, August \'03 [Non-Site SCR 02]') + assertRegexpMatches( + self, result['description'], r'TILT Brass - Bowery Poetry Club') + self.assertEqual(len(result['entries']), 6) + def test_livestream_event(self): dl = FakeYDL() ie = LivestreamIE(dl) |