[googlesearch] Move test to extractor

This commit is contained in:
Philipp Hagemeister 2014-08-25 17:02:52 +02:00
parent 1dd70fe330
commit 829476b80a
3 changed files with 13 additions and 9 deletions

View file

@ -142,6 +142,11 @@ def generator(test_case):
'Expected at least %d in playlist %s, but got only %d' % (
test_case['playlist_mincount'], test_case['url'],
len(res_dict['entries'])))
if 'playlist_count' in test_case:
self.assertEqual(
len(res_dict['entries']),
test_case['playlist_count'],
'Expected at %d in playlist %s, but got %d.')
for tc in test_cases:
tc_filename = get_tc_filename(tc)