mirror of https://github.com/blackjack4494/yt-dlc
[imdb] Add playlist test
This commit is contained in:
parent
c645c7658d
commit
41cc67c542
|
@ -28,7 +28,8 @@ from youtube_dl.extractor import (
|
||||||
BandcampAlbumIE,
|
BandcampAlbumIE,
|
||||||
SmotriCommunityIE,
|
SmotriCommunityIE,
|
||||||
SmotriUserIE,
|
SmotriUserIE,
|
||||||
IviCompilationIE
|
IviCompilationIE,
|
||||||
|
ImdbListIE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -188,6 +189,15 @@ class TestPlaylists(unittest.TestCase):
|
||||||
self.assertEqual(result['title'], u'Дежурный ангел (2010 - 2012) 2 сезон')
|
self.assertEqual(result['title'], u'Дежурный ангел (2010 - 2012) 2 сезон')
|
||||||
self.assertTrue(len(result['entries']) >= 20)
|
self.assertTrue(len(result['entries']) >= 20)
|
||||||
|
|
||||||
|
def test_imdb_list(self):
|
||||||
|
dl = FakeYDL()
|
||||||
|
ie = ImdbListIE(dl)
|
||||||
|
result = ie.extract('http://www.imdb.com/list/sMjedvGDd8U')
|
||||||
|
self.assertIsPlaylist(result)
|
||||||
|
self.assertEqual(result['id'], u'sMjedvGDd8U')
|
||||||
|
self.assertEqual(result['title'], u'Animated and Family Films')
|
||||||
|
self.assertTrue(len(result['entries']) >= 48)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue