Browse Source

[test/test_http] Update tests

After switching to HTML5 extraction helpers in generic.py, the result
info_dict is always a playlist.
totalwebcasting
Yen Chi Hsuan 8 years ago
parent
commit
6f20b65e72
No known key found for this signature in database GPG Key ID: 3FDDD575826C5C30
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      test/test_http.py

+ 2
- 2
test/test_http.py View File

@ -87,7 +87,7 @@ class TestHTTP(unittest.TestCase):
ydl = YoutubeDL({'logger': FakeLogger()})
r = ydl.extract_info('http://localhost:%d/302' % self.port)
self.assertEqual(r['url'], 'http://localhost:%d/vid.mp4' % self.port)
self.assertEqual(r['entries'][0]['url'], 'http://localhost:%d/vid.mp4' % self.port)
class TestHTTPS(unittest.TestCase):
@ -111,7 +111,7 @@ class TestHTTPS(unittest.TestCase):
ydl = YoutubeDL({'logger': FakeLogger(), 'nocheckcertificate': True})
r = ydl.extract_info('https://localhost:%d/video.html' % self.port)
self.assertEqual(r['url'], 'https://localhost:%d/vid.mp4' % self.port)
self.assertEqual(r['entries'][0]['url'], 'https://localhost:%d/vid.mp4' % self.port)
def _build_proxy_handler(name):


Loading…
Cancel
Save