diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-06-07 15:20:12 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-06-07 15:20:12 +0200 |
commit | 24f5251cce172f0e403b4178819dd26b3873f021 (patch) | |
tree | d7748f7af049920740a58ac7b53ecef283a2d5bb /test | |
parent | ac1390eee838d35b76d356e4e68bd430843d3439 (diff) | |
parent | b4e7447458770a705c064d0eb7f73f49dc885557 (diff) |
Merge remote-tracking branch 'pulpe/teachertube'
Conflicts:
youtube_dl/extractor/__init__.py
Diffstat (limited to 'test')
-rw-r--r-- | test/test_playlists.py | 9 |
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() |