From: Yen Chi Hsuan Date: Sun, 31 Jan 2016 11:49:54 +0000 (+0800) Subject: [test_youtube_lists] Fix TestYoutubeLists.test_youtube_course X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a7aab0c23e537d9df3d0946c0b960cc92e35d2ff;p=youtube-dl [test_youtube_lists] Fix TestYoutubeLists.test_youtube_course Youtube entries are now generators --- diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py index 26aadb34f..47df0f348 100644 --- a/test/test_youtube_lists.py +++ b/test/test_youtube_lists.py @@ -34,7 +34,7 @@ class TestYoutubeLists(unittest.TestCase): ie = YoutubePlaylistIE(dl) # TODO find a > 100 (paginating?) videos course result = ie.extract('https://www.youtube.com/course?list=ECUl4u3cNGP61MdtwGTqZA0MreSaDybji8') - entries = result['entries'] + entries = list(result['entries']) self.assertEqual(YoutubeIE().extract_id(entries[0]['url']), 'j9WZyLZCBzs') self.assertEqual(len(entries), 25) self.assertEqual(YoutubeIE().extract_id(entries[-1]['url']), 'rYefUsYuEp0')