[arretsurimages] fix #1691, correctly implement search and add a test

This commit is contained in:
Bezleputh 2014-12-18 18:04:28 +01:00 committed by Florent Fourcot
commit 71347cb8f7
4 changed files with 17 additions and 7 deletions

View file

@ -46,7 +46,7 @@ class ArretSurImagesBrowser(Browser):
def search_videos(self, pattern):
self.location(self.buildurl('/emissions.php'))
assert self.is_on_page(IndexPage)
return self.page.iter_videos()
return self.page.iter_videos(pattern)
@id2url(ArretSurImagesVideo.id2url)
def get_video(self, url, video=None):