diff options
Diffstat (limited to 'test/test_playlists.py')
| -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() | 
