aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nba.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-27 20:46:46 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-27 20:46:46 +0200
commit6f5ac90cf314e8e1a7c5c416fb51e3a7b8483e9c (patch)
tree5858b022ee180d96bbb57ca5c2fb827222c83f8d /youtube_dl/extractor/nba.py
parentddbd9035764678fbd698a8e5358a8cfbdfe0dfe9 (diff)
Move tests to the IE definitions
Diffstat (limited to 'youtube_dl/extractor/nba.py')
-rw-r--r--youtube_dl/extractor/nba.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/extractor/nba.py b/youtube_dl/extractor/nba.py
index 296d4cd36..122b7dd26 100644
--- a/youtube_dl/extractor/nba.py
+++ b/youtube_dl/extractor/nba.py
@@ -8,6 +8,15 @@ from ..utils import (
class NBAIE(InfoExtractor):
_VALID_URL = r'^(?:https?://)?(?:watch\.|www\.)?nba\.com/(?:nba/)?video(/[^?]*?)(?:/index\.html)?(?:\?.*)?$'
+ _TEST = {
+ u'url': u'http://www.nba.com/video/games/nets/2012/12/04/0021200253-okc-bkn-recap.nba/index.html',
+ u'file': u'0021200253-okc-bkn-recap.nba.mp4',
+ u'md5': u'c0edcfc37607344e2ff8f13c378c88a4',
+ u'info_dict': {
+ u"description": u"Kevin Durant scores 32 points and dishes out six assists as the Thunder beat the Nets in Brooklyn.",
+ u"title": u"Thunder vs. Nets"
+ }
+ }
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)