fix some tests and urls

This commit is contained in:
j 2016-05-21 15:19:25 +02:00
commit 7695a9c015
7 changed files with 60 additions and 238 deletions

View file

@ -21,11 +21,11 @@ def find(query, max_results=DEFAULT_MAX_RESULTS, timeout=DEFAULT_TIMEOUT):
"""
Return max_results tuples with title, url, description
>>> find("The Matrix site:imdb.com", 1)[0][0]
u'The Matrix (1999) - IMDb'
>>> str(find("The Matrix site:imdb.com", 1)[0][0])
'The Matrix (1999) - IMDb'
>>> find("The Matrix site:imdb.com", 1)[0][1]
u'http://www.imdb.com/title/tt0133093/'
>>> str(find("The Matrix site:imdb.com", 1)[0][1])
'http://www.imdb.com/title/tt0133093/'
"""
results = []
offset = 0