aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/yahoo.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-04-19 19:41:06 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-04-19 19:41:06 +0200
commit52fadd5fb2ea5d7e7cd6000203aa7ef886ffad07 (patch)
tree9c8caae3790b3237cf78c40facaeb4dd20d103ca /youtube_dl/extractor/yahoo.py
parent5367fe7f4d8699b711a712598615a815a013fa9c (diff)
downloadyoutube-dl-52fadd5fb2ea5d7e7cd6000203aa7ef886ffad07.zip
youtube-dl-52fadd5fb2ea5d7e7cd6000203aa7ef886ffad07.tar.gz
youtube-dl-52fadd5fb2ea5d7e7cd6000203aa7ef886ffad07.tar.bz2
[test_all_urls] Add support for distributed URL matching test definition
Diffstat (limited to 'youtube_dl/extractor/yahoo.py')
-rw-r--r--youtube_dl/extractor/yahoo.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py
index e2cf1ae..4671f49 100644
--- a/youtube_dl/extractor/yahoo.py
+++ b/youtube_dl/extractor/yahoo.py
@@ -104,7 +104,7 @@ class YahooNewsIE(YahooIE):
IE_NAME = 'yahoo:news'
_VALID_URL = r'http://news\.yahoo\.com/video/.*?-(?P<id>\d*?)\.html'
- _TEST = {
+ _TESTS = [{
'url': 'http://news.yahoo.com/video/china-moses-crazy-blues-104538833.html',
'md5': '67010fdf3a08d290e060a4dd96baa07b',
'info_dict': {
@@ -113,10 +113,7 @@ class YahooNewsIE(YahooIE):
'title': 'China Moses Is Crazy About the Blues',
'description': 'md5:9900ab8cd5808175c7b3fe55b979bed0',
},
- }
-
- # Overwrite YahooIE properties we don't want
- _TESTS = []
+ }]
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)