Exemplo n.º 1
0
 def test_netrc_present(self):
     for ie in gen_extractors():
         if not hasattr(ie, '_login'):
             continue
         self.assertTrue(
             hasattr(ie, '_NETRC_MACHINE'),
             'Extractor %s supports login, but is missing a _NETRC_MACHINE property' % ie.IE_NAME)
Exemplo n.º 2
0
 def test_no_duplicates(self):
     ies = gen_extractors()
     for tc in gettestcases(include_onlymatching=True):
         url = tc['url']
         for ie in ies:
             if type(ie).__name__ in ('GenericIE', tc['name'] + 'IE'):
                 self.assertTrue(
                     ie.suitable(url),
                     '%s should match URL %r' % (type(ie).__name__, url))
             else:
                 self.assertFalse(
                     ie.suitable(url),
                     '%s should not match URL %r . That URL belongs to %s.'
                     % (type(ie).__name__, url, tc['name']))
Exemplo n.º 3
0
 def setUp(self):
     self.ies = gen_extractors()