about summary refs log tree commit diff
path: root/youtube_dl/extractor/imdb.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-08-28 00:58:24 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-08-28 00:58:24 +0200
commit22a6f15061127045f4d6ae1ff4efc922fa372cc2 (patch)
treef0df2ab32f301b3c66b6d9d147e49fe177e27a55 /youtube_dl/extractor/imdb.py
parent259454525f9fe41947e6e05882336b7196fc8fce (diff)
downloadyoutube-dl-22a6f15061127045f4d6ae1ff4efc922fa372cc2.tar.gz
youtube-dl-22a6f15061127045f4d6ae1ff4efc922fa372cc2.tar.xz
youtube-dl-22a6f15061127045f4d6ae1ff4efc922fa372cc2.zip
Move playlist tests to extractors.
From now on, test_download will run these tests. That means we benefit not only from the networking setup in there, but also from the other tests (for example test_all_urls to find problems with _VALID_URLs).
Diffstat (limited to 'youtube_dl/extractor/imdb.py')
-rw-r--r--youtube_dl/extractor/imdb.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/imdb.py b/youtube_dl/extractor/imdb.py
index 7cee505c0..4536db3bf 100644
--- a/youtube_dl/extractor/imdb.py
+++ b/youtube_dl/extractor/imdb.py
@@ -63,6 +63,14 @@ class ImdbListIE(InfoExtractor):
     IE_NAME = 'imdb:list'
     IE_DESC = 'Internet Movie Database lists'
     _VALID_URL = r'http://www\.imdb\.com/list/(?P<id>[\da-zA-Z_-]{11})'
+    _TEST = {
+        'url': 'http://www.imdb.com/list/JFs9NWw6XI0',
+        'info_dict': {
+            'id': 'JFs9NWw6XI0',
+            'title': 'March 23, 2012 Releases',
+        },
+        'playlist_count': 7,
+    }
     
     def _real_extract(self, url):
         mobj = re.match(self._VALID_URL, url)