+ def test_soundcloud_likes(self):
+ dl = FakeYDL()
+ ie = SoundcloudUserIE(dl)
+ result = ie.extract('https://soundcloud.com/the-concept-band/likes')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], '9615865')
+ self.assertTrue(len(result['entries']) >= 1)
+
+ 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)
+