aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-06-25 19:06:11 +0700
committerSergey M․ <dstftw@gmail.com>2014-06-25 19:06:11 +0700
commitfd69098a45a85f84455140aa14c7384670eef572 (patch)
tree8eaec97af8c0f6567c48f3c137da26290310bff2 /test
parent8867f908fc7f361f7b4f85f52ddcb78b5a4a8dff (diff)
downloadyoutube-dl-fd69098a45a85f84455140aa14c7384670eef572.tar.xz
[rutube] Update playlist tests
Diffstat (limited to 'test')
-rw-r--r--test/test_playlists.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index ee91e412a..42051fe2a 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -40,6 +40,7 @@ from youtube_dl.extractor import (
KhanAcademyIE,
EveryonesMixtapeIE,
RutubeChannelIE,
+ RutubePersonIE,
GoogleSearchIE,
GenericIE,
TEDIE,
@@ -256,10 +257,18 @@ class TestPlaylists(unittest.TestCase):
def test_rutube_channel(self):
dl = FakeYDL()
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.assertEqual(result['id'], '1409')
- self.assertTrue(len(result['entries']) >= 34)
+ self.assertEqual(result['id'], '1800')
+ 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):
# https://github.com/rg3/youtube-dl/issues/2283