def test_data_files_installed(data_file_path):
    """Ensure data file paths are available in the installed package."""
    import cherrypy

    root = os.path.dirname(cherrypy.__file__)
    fn = os.path.join(root, data_file_path)
    assert os.path.exists(fn), fn
    # make sure the file isn't in the local checkout
    assert not os.path.samefile(fn, os.path.join('cherrypy', data_file_path))
Ensure data file paths are available in the installed package.
tests/dist-check.py