]>
Raphaƫl G. Git Repositories - youtubedl/blob - test/test_youtube_playlist_ids.py
2eeb3216c70ee0078c2b1f956e4676e21f027f9a
   6 # Allow direct execution 
   8 sys
.path
.append(os
.path
.dirname(os
.path
.dirname(os
.path
.abspath(__file__
)))) 
  10 from youtube_dl
.InfoExtractors 
import YoutubeIE
, YoutubePlaylistIE
 
  12 class TestYoutubePlaylistMatching(unittest
.TestCase
): 
  13     def test_playlist_matching(self
): 
  14         self
.assertTrue(YoutubePlaylistIE().suitable(u
'ECUl4u3cNGP61MdtwGTqZA0MreSaDybji8')) 
  15         self
.assertTrue(YoutubePlaylistIE().suitable(u
'PL63F0C78739B09958')) 
  16         self
.assertFalse(YoutubePlaylistIE().suitable(u
'PLtS2H6bU1M')) 
  18     def test_youtube_matching(self
): 
  19         self
.assertTrue(YoutubeIE().suitable(u
'PLtS2H6bU1M')) 
  21 if __name__ 
== '__main__':