Extract functions to list expected/found database indexes from check_indexes
so they may be used from other contexts.
Use consistent naming along the way: always use indexes, not indices.
.. _tools_module:
:mod:`cubicweb.pyramid.tools`
----------------------------
.. automodule:: cubicweb.pyramid.tools
.. autofunction:: includeme
.. autofunction:: clone_user
.. autofunction:: cnx_attach_entity
.. autofunction:: cached_build_user
.. autofunction:: clear_cache