def defined(self, handler_type):
        """
        Test whether ``handler_type`` is defined.

        :param handler_type: The name or ``handler_type`` of the handler (I.e.
            ``log``, ``config``, ``output``, etc).
        :returns: True if the handler type is defined, False otherwise.
        :rtype: ``boolean``

        Usage:

        .. code-block:: python

            app.handler.defined('log')

        """
        if handler_type in self.__handlers__:
            return True
        else:
            return False
dataset/ETHPy150Open datafolklabs/cement/cement/core/handler.py/HandlerManager.defined/original