def test_filter_empty_filter(test_url: str): download_filter = DownloadFilter() test_resource = Resource(MagicMock(), test_url) result = download_filter.check_resource(test_resource) assert result is True
def test_filter_all(test_url: str, expected: bool, download_filter: DownloadFilter): test_resource = Resource(MagicMock(), test_url) result = download_filter.check_resource(test_resource) assert result == expected