def METHOD_NAME(cls,
                handler_cls,    # Type[BaseHTTPFactory]
                conf,           # type: AutopushConfig
                db=None,        # type: Optional[DatabaseManager]
                **kwargs):
    # type: (...) -> BaseHTTPFactory
    """Create a cyclone app around a specific handler_cls for tests.
    Creates an uninitialized (no setup() called) DatabaseManager
    from conf if one isn't specified.
    handler_cls must be included in ap_handlers or a ValueError is
    thrown.
    """
    if 'handlers' in kwargs:  # pragma: nocover
        raise ValueError("handler_cls incompatibile with handlers kwarg")
    for pattern, handler in cls.ap_handlers + cls.health_ap_handlers:
        if handler is handler_cls:
            if db is None:
                db = DatabaseManager.from_config(conf)
            return cls._for_handler(
                conf,
                db=db,
                handlers=[(pattern, handler)],
                **kwargs
            )
    raise ValueError("{!r} not in ap_handlers".format(
        handler_cls))  # pragma: nocover