def request(self, request):
        """
        Capture the given request for later inspection.

        @return: A L{Deferred} which this code will never fire.
        """
        result = Deferred()
        self.requests.append((request, result))
        return result

        Capture the given request for later inspection.

        @return: A L{Deferred} which this code will never fire.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py