def provides_collection_resource(obj):
    """
    Checks if the given type or instance provides the
    :class:`everest.resources.interfaces.ICollectionResource` interface.
    """
    if isinstance(obj, type):
        obj = object.__new__(obj)
    return ICollectionResource in provided_by(obj)
def provides_collection_resource ( obj ) : if isinstance ( obj , type ) : obj = object . __new__ ( obj ) return ICollectionResource in provided_by ( obj )
Checks if the given type or instance provides the
    :class:`everest.resources.interfaces.ICollectionResource` interface.