From ccf9114e84ded8dd90b01c6c2d4d3ff3b111d7cd Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 6 Feb 2014 03:29:10 +0100 Subject: [googlesearch] Fix start, and skip playlists (Fixes #2329) --- test/test_playlists.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/test_playlists.py') 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() -- cgit v1.2.3