diff options
author | Philipp Hagemeister <[email protected]> | 2014-02-06 03:29:10 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-02-06 03:29:10 +0100 |
commit | ccf9114e84ded8dd90b01c6c2d4d3ff3b111d7cd (patch) | |
tree | 1c6f0cbc06cc518e4f8d359b3b7e1d98de82bb55 /test | |
parent | 211e17dd436b7626d13195f482133ef223d154bb (diff) | |
download | youtube-dl-ccf9114e84ded8dd90b01c6c2d4d3ff3b111d7cd.tar.gz youtube-dl-ccf9114e84ded8dd90b01c6c2d4d3ff3b111d7cd.zip |
[googlesearch] Fix start, and skip playlists (Fixes #2329)
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 fda2e0112..e0eb05460 100644 --- a/test/test_playlists.py +++ b/test/test_playlists.py @@ -34,6 +34,7 @@ from youtube_dl.extractor import ( KhanAcademyIE, EveryonesMixtapeIE, RutubeChannelIE, + GoogleSearchIE, GenericIE, ) @@ -240,6 +241,14 @@ class TestPlaylists(unittest.TestCase): self.assertEqual(result['title'], 'Always/Never: A Little-Seen Movie About Nuclear Command and Control : The New Yorker') self.assertEqual(len(result['entries']), 3) + def test_GoogleSearch(self): + dl = FakeYDL() + ie = GoogleSearchIE(dl) + result = ie.extract('gvsearch15:python language') + self.assertIsPlaylist(result) + self.assertEqual(result['id'], 'python language') + self.assertEqual(result['title'], 'python language') + self.assertTrue(len(result['entries']) == 15) if __name__ == '__main__': unittest.main() |