about summary refs log tree commit diff
path: root/test/test_download.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 /test/test_download.py
parent1dd70fe330f1ae1aa33856d73c10c259b37b7d4a (diff)
downloadyoutube-dl-829476b80a86819c79511f60f4fc25f09ab186b7.tar.gz
youtube-dl-829476b80a86819c79511f60f4fc25f09ab186b7.tar.xz
youtube-dl-829476b80a86819c79511f60f4fc25f09ab186b7.zip
[googlesearch] Move test to extractor
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_download.py b/test/test_download.py
index c8d4ec2c8..5d24300f1 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -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)