コード例 #1
0
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)
コード例 #2
0
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)