+
+ def test_imdb_list(self):
+ dl = FakeYDL()
+ ie = ImdbListIE(dl)
+ result = ie.extract('http://www.imdb.com/list/sMjedvGDd8U')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], 'sMjedvGDd8U')
+ self.assertEqual(result['title'], 'Animated and Family Films')
+ self.assertTrue(len(result['entries']) >= 48)
+
+ def test_khanacademy_topic(self):
+ dl = FakeYDL()
+ ie = KhanAcademyIE(dl)
+ result = ie.extract('https://www.khanacademy.org/math/applied-math/cryptography')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], 'cryptography')
+ self.assertEqual(result['title'], 'Journey into cryptography')
+ self.assertEqual(result['description'], 'How have humans protected their secret messages through history? What has changed today?')
+ self.assertTrue(len(result['entries']) >= 3)
+
+ def test_EveryonesMixtape(self):
+ dl = FakeYDL()
+ ie = EveryonesMixtapeIE(dl)
+ result = ie.extract('http://everyonesmixtape.com/#/mix/m7m0jJAbMQi')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], 'm7m0jJAbMQi')
+ self.assertEqual(result['title'], 'Driving')
+ self.assertEqual(len(result['entries']), 24)