def METHOD_NAME(build, output_dir):
    """Do the indexes only contain the pages the should?"""
    subdir3 = os.path.join(output_dir, "pages", "subdir3")
    with io.open(os.path.join(subdir3, "index.php"), "r", encoding="utf-8") as fh:
        subdir3_index = fh.read()
    assert "Page 0" not in subdir3_index
    assert "Page 1" not in subdir3_index
    assert "Page 2" not in subdir3_index
    assert "Page 3" not in subdir3_index
    assert "Page 4" not in subdir3_index
    assert "This is not the page index either." in subdir3_index