]>
Raphaƫl G. Git Repositories - youtubedl/blob - test/test_netrc.py
2 from __future__
import unicode_literals
7 sys
.path
.insert(0, os
.path
.dirname(os
.path
.dirname(os
.path
.abspath(__file__
))))
10 from youtube_dl
.extractor
import (
15 class TestNetRc(unittest
.TestCase
):
16 def test_netrc_present(self
):
17 for ie
in gen_extractors():
18 if not hasattr(ie
, '_login'):
21 hasattr(ie
, '_NETRC_MACHINE'),
22 'Extractor %s supports login, but is missing a _NETRC_MACHINE property' % ie
.IE_NAME
)
25 if __name__
== '__main__':