aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_extractor.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-09-28 18:27:46 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-09-28 18:27:46 -0400
commit9074eee175f76b824fbb6695d56426105191c51c (patch)
tree2294be463d325d7092e600d88f160027c437086d /test/test_extractor.py
parent261c8c2bc74969e2242a153297895684742b6995 (diff)
New upstream version 1.15.0.upstream/1.15.0
Diffstat (limited to 'test/test_extractor.py')
-rw-r--r--test/test_extractor.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/test_extractor.py b/test/test_extractor.py
index 043bd52..162edc0 100644
--- a/test/test_extractor.py
+++ b/test/test_extractor.py
@@ -75,30 +75,6 @@ class TestExtractorModule(unittest.TestCase):
self.assertEqual(classes[0], FakeExtractor)
self.assertIsInstance(extractor.find(uri), FakeExtractor)
- def test_blacklist(self):
- link_uri = "https://example.org/file.jpg"
- test_uri = "test:"
- fake_uri = "fake:"
-
- self.assertIsInstance(extractor.find(link_uri), DirectlinkExtractor)
- self.assertIsInstance(extractor.find(test_uri), Extractor)
- self.assertIsNone(extractor.find(fake_uri))
-
- with extractor.blacklist(["directlink"]):
- self.assertIsNone(extractor.find(link_uri))
- self.assertIsInstance(extractor.find(test_uri), Extractor)
- self.assertIsNone(extractor.find(fake_uri))
-
- with extractor.blacklist([], [DirectlinkExtractor, FakeExtractor]):
- self.assertIsNone(extractor.find(link_uri))
- self.assertIsInstance(extractor.find(test_uri), Extractor)
- self.assertIsNone(extractor.find(fake_uri))
-
- with extractor.blacklist(["test"], [DirectlinkExtractor]):
- self.assertIsNone(extractor.find(link_uri))
- self.assertIsNone(extractor.find(test_uri))
- self.assertIsNone(extractor.find(fake_uri))
-
def test_from_url(self):
for uri in self.VALID_URIS:
cls = extractor.find(uri).__class__