def _callFUT(self, request, handler=None):
     registry = self.config.registry
     if request.remote_addr is None:
         request.remote_addr = '127.0.0.1'
     from pyramid_debugtoolbar.toolbar import toolbar_handler_factory
     if handler is None:
         handler = self._makeHandler()
     handler = toolbar_handler_factory(handler, registry)
     return handler(request)
 def _callFUT(self, handler, registry):
     from pyramid_debugtoolbar.toolbar import toolbar_handler_factory
     return toolbar_handler_factory(handler, registry)