aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/googlesearch.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-08-25 17:02:52 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-08-25 17:02:52 +0200
commit829476b80a86819c79511f60f4fc25f09ab186b7 (patch)
treede87a98c144e08028552ffc11be9a89397d826a1 /youtube_dl/extractor/googlesearch.py
parent1dd70fe330f1ae1aa33856d73c10c259b37b7d4a (diff)
downloadyoutube-dl-829476b80a86819c79511f60f4fc25f09ab186b7.tar.xz
[googlesearch] Move test to extractor
Diffstat (limited to 'youtube_dl/extractor/googlesearch.py')
-rw-r--r--youtube_dl/extractor/googlesearch.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/googlesearch.py b/youtube_dl/extractor/googlesearch.py
index 383032d81..469e1f935 100644
--- a/youtube_dl/extractor/googlesearch.py
+++ b/youtube_dl/extractor/googlesearch.py
@@ -14,6 +14,14 @@ class GoogleSearchIE(SearchInfoExtractor):
_MAX_RESULTS = 1000
IE_NAME = 'video.google:search'
_SEARCH_KEY = 'gvsearch'
+ _TEST = {
+ 'url': 'gvsearch15:python language',
+ 'info_dict': {
+ 'id': 'python language',
+ 'title': 'python language',
+ },
+ 'playlist_count': 15,
+ }
def _get_n_results(self, query, n):
"""Get a specified number of results for a query"""