diff options
| author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-11-22 16:05:14 +0100 | 
|---|---|---|
| committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-11-22 16:05:14 +0100 | 
| commit | 0980426559741bb9a8b2ea39b581073cf2738f5a (patch) | |
| tree | 91bf6e46d525bf9de4a712a22df1e33818123010 /test | |
| parent | b1c9c669365cea4fb94babd66076665685abc453 (diff) | |
[bandcamp] add support for albums (reported in #1270)
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_playlists.py | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py index 706b6bdca..d83b3bf51 100644 --- a/test/test_playlists.py +++ b/test/test_playlists.py @@ -22,6 +22,7 @@ from youtube_dl.extractor import (      LivestreamIE,      NHLVideocenterIE,      BambuserChannelIE, +    BandcampAlbumIE  ) @@ -103,5 +104,13 @@ class TestPlaylists(unittest.TestCase):          self.assertEqual(result['title'], u'pixelversity')          self.assertTrue(len(result['entries']) >= 66) +    def test_bandcamp_album(self): +        dl = FakeYDL() +        ie = BandcampAlbumIE(dl) +        result = ie.extract('http://mpallante.bandcamp.com/album/nightmare-night-ep') +        self.assertIsPlaylist(result) +        self.assertEqual(result['title'], u'Nightmare Night EP') +        self.assertTrue(len(result['entries']) >= 4) +  if __name__ == '__main__':      unittest.main()  | 
