aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/facebook.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/facebook.py
parentddbd9035764678fbd698a8e5358a8cfbdfe0dfe9 (diff)
Move tests to the IE definitions
Diffstat (limited to 'youtube_dl/extractor/facebook.py')
-rw-r--r--youtube_dl/extractor/facebook.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index c694f9adb..beaa5b4bd 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -22,6 +22,15 @@ class FacebookIE(InfoExtractor):
_LOGIN_URL = 'https://login.facebook.com/login.php?m&next=http%3A%2F%2Fm.facebook.com%2Fhome.php&'
_NETRC_MACHINE = 'facebook'
IE_NAME = u'facebook'
+ _TEST = {
+ u'url': u'https://www.facebook.com/photo.php?v=120708114770723',
+ u'file': u'120708114770723.mp4',
+ u'md5': u'48975a41ccc4b7a581abd68651c1a5a8',
+ u'info_dict': {
+ u"duration": 279,
+ u"title": u"PEOPLE ARE AWESOME 2013"
+ }
+ }
def report_login(self):
"""Report attempt to log in."""