[skynews] update test

pull/11632/head
Remita Amine 2017-01-06 11:22:35 +01:00
parent b2727d0bee
commit a814da3f62
1 changed files with 6 additions and 5 deletions

View File

@ -2,18 +2,19 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import strip_or_none
class SkySportsIE(InfoExtractor): class SkySportsIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?skysports\.com/watch/video/(?P<id>[0-9]+)' _VALID_URL = r'https?://(?:www\.)?skysports\.com/watch/video/(?P<id>[0-9]+)'
_TEST = { _TEST = {
'url': 'http://www.skysports.com/watch/video/10328419/bale-its-our-time-to-shine', 'url': 'http://www.skysports.com/watch/video/10328419/bale-its-our-time-to-shine',
'md5': 'c44a1db29f27daf9a0003e010af82100', 'md5': '77d59166cddc8d3cb7b13e35eaf0f5ec',
'info_dict': { 'info_dict': {
'id': '10328419', 'id': '10328419',
'ext': 'flv', 'ext': 'mp4',
'title': 'Bale: Its our time to shine', 'title': 'Bale: It\'s our time to shine',
'description': 'md5:9fd1de3614d525f5addda32ac3c482c9', 'description': 'md5:e88bda94ae15f7720c5cb467e777bb6d',
}, },
'add_ie': ['Ooyala'], 'add_ie': ['Ooyala'],
} }
@ -28,6 +29,6 @@ class SkySportsIE(InfoExtractor):
'url': 'ooyala:%s' % self._search_regex( 'url': 'ooyala:%s' % self._search_regex(
r'data-video-id="([^"]+)"', webpage, 'ooyala id'), r'data-video-id="([^"]+)"', webpage, 'ooyala id'),
'title': self._og_search_title(webpage), 'title': self._og_search_title(webpage),
'description': self._og_search_description(webpage), 'description': strip_or_none(self._og_search_description(webpage)),
'ie_key': 'Ooyala', 'ie_key': 'Ooyala',
} }