def test_scraper_is_supported(mime, ver): """Test is_supported method for WandScraper""" assert WandScraper.is_supported(mime, ver, True) assert WandScraper.is_supported(mime, None, True) assert WandScraper.is_supported(mime, ver, False) assert WandScraper.is_supported(mime, "foo", True) assert not WandScraper.is_supported("foo", ver, True)
def test_scraper_is_supported(mime, ver): """ Test is_supported method for WandScraper :mime: MIME type :ver: File format version """ assert WandScraper.is_supported(mime, ver, True) assert WandScraper.is_supported(mime, None, True) assert WandScraper.is_supported(mime, ver, False) assert WandScraper.is_supported(mime, "foo", True) assert not WandScraper.is_supported("foo", ver, True)