aboutsummaryrefslogtreecommitdiff
path: root/test/test_playlists.py
diff options
context:
space:
mode:
authorpulpe <Pulpan3@gmail.com>2014-06-06 11:21:59 +0200
committerpulpe <Pulpan3@gmail.com>2014-06-06 11:21:59 +0200
commitb4e7447458770a705c064d0eb7f73f49dc885557 (patch)
tree19f84f9bd301dce7d07e1d1437566a5104eb09ad /test/test_playlists.py
parentb3ae826f7a94420200afe6955d5693416ae84d8e (diff)
downloadyoutube-dl-b4e7447458770a705c064d0eb7f73f49dc885557.tar.xz
[TeacherTubeIE] Add extractor for teachertube.com videos + classrooms (fixes #3046)
Diffstat (limited to 'test/test_playlists.py')
-rw-r--r--test/test_playlists.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index 057ce43f0..465b07b9e 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -28,6 +28,7 @@ from youtube_dl.extractor import (
SoundcloudSetIE,
SoundcloudUserIE,
SoundcloudPlaylistIE,
+ TeacherTubeClassroomIE,
LivestreamIE,
NHLVideocenterIE,
BambuserChannelIE,
@@ -360,5 +361,13 @@ class TestPlaylists(unittest.TestCase):
result['title'], 'Brace Yourself - Today\'s Weirdest News')
self.assertTrue(len(result['entries']) >= 10)
+ def test_TeacherTubeClassroom(self):
+ dl = FakeYDL()
+ ie = TeacherTubeClassroomIE(dl)
+ result = ie.extract('http://www.teachertube.com/view_classroom.php?user=rbhagwati2')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], 'rbhagwati2')
+ self.assertTrue(len(result['entries']) >= 20)
+
if __name__ == '__main__':
unittest.main()