diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-01-01 15:30:46 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-01-01 15:30:46 +0100 |
commit | eadaf08c1670d2fc9a2078faca95fbc49d6a5af0 (patch) | |
tree | 737a39e71738bcaee04d3f94d0eab8362e903efa /test/test_playlists.py | |
parent | 33ec2ae8d9450a59273d2156bd2ef77d2bd93a66 (diff) | |
parent | 8fa8a6299b0882eb9fd6a1ef84dd6b11396c22c2 (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'test/test_playlists.py')
-rw-r--r-- | test/test_playlists.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py index 1b7b4e3d8..9d522b357 100644 --- a/test/test_playlists.py +++ b/test/test_playlists.py @@ -28,7 +28,8 @@ from youtube_dl.extractor import ( BandcampAlbumIE, SmotriCommunityIE, SmotriUserIE, - IviCompilationIE + IviCompilationIE, + ImdbListIE, ) @@ -187,6 +188,15 @@ class TestPlaylists(unittest.TestCase): self.assertEqual(result['id'], u'dezhurnyi_angel/season2') self.assertEqual(result['title'], u'Дежурный ангел (2010 - 2012) 2 сезон') 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__': |