1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[rutube] Update playlist tests

This commit is contained in:
Sergey M․ 2014-06-25 19:06:11 +07:00
parent 8867f908fc
commit fd69098a45

View File

@ -40,6 +40,7 @@ from youtube_dl.extractor import (
KhanAcademyIE, KhanAcademyIE,
EveryonesMixtapeIE, EveryonesMixtapeIE,
RutubeChannelIE, RutubeChannelIE,
RutubePersonIE,
GoogleSearchIE, GoogleSearchIE,
GenericIE, GenericIE,
TEDIE, TEDIE,
@ -256,10 +257,18 @@ class TestPlaylists(unittest.TestCase):
def test_rutube_channel(self): def test_rutube_channel(self):
dl = FakeYDL() dl = FakeYDL()
ie = RutubeChannelIE(dl) ie = RutubeChannelIE(dl)
result = ie.extract('http://rutube.ru/tags/video/1409') result = ie.extract('http://rutube.ru/tags/video/1800/')
self.assertIsPlaylist(result) self.assertIsPlaylist(result)
self.assertEqual(result['id'], '1409') self.assertEqual(result['id'], '1800')
self.assertTrue(len(result['entries']) >= 34) self.assertTrue(len(result['entries']) >= 68)
def test_rutube_person(self):
dl = FakeYDL()
ie = RutubePersonIE(dl)
result = ie.extract('http://rutube.ru/video/person/313878/')
self.assertIsPlaylist(result)
self.assertEqual(result['id'], '313878')
self.assertTrue(len(result['entries']) >= 37)
def test_multiple_brightcove_videos(self): def test_multiple_brightcove_videos(self):
# https://github.com/rg3/youtube-dl/issues/2283 # https://github.com/rg3/youtube-dl/issues/2283