diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-12-09 04:49:32 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-12-09 04:49:32 +0100 |
commit | ffa8f0df0a878463078467709f615b1e57c61ec1 (patch) | |
tree | ca1d84977f876fcc72e6989cd4de60bc4f834167 /test | |
parent | 693b8b2d310e119417787e7b06d1e1832d16f05d (diff) | |
parent | 0a688bc0b28c970e9af965b3fa0c7927507eeb97 (diff) |
Merge remote-tracking branch 'jaimeMF/yt-toplists'
Diffstat (limited to 'test')
-rw-r--r-- | test/test_youtube_lists.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py index 95f07d129..33db09f43 100644 --- a/test/test_youtube_lists.py +++ b/test/test_youtube_lists.py @@ -15,6 +15,7 @@ from youtube_dl.extractor import ( YoutubeIE, YoutubeChannelIE, YoutubeShowIE, + YoutubeTopListIE, ) @@ -116,5 +117,12 @@ class TestYoutubeLists(unittest.TestCase): original_video = entries[0] self.assertEqual(original_video['id'], 'rjFaenf1T-Y') + def test_youtube_toplist(self): + dl = FakeYDL() + ie = YoutubeTopListIE(dl) + result = ie.extract('yttoplist:music:Top Tracks') + entries = result['entries'] + self.assertTrue(len(entries) >= 9) + if __name__ == '__main__': unittest.main() |