def METHOD_NAME(extractor, page, year, expected_name):
    """Check if extractor can access files with expected file names."""
    if extractor.excel_filename(page, year=year) != expected_name:
        raise AssertionError(
            f"file name for {page} in {year} doesn't match datastore."
        )