'Capture the given request for later inspection.
@return: A L{Deferred} which this code will never fire.'

def request(self, request):

    result = Deferred()
    self.requests.append((request, result))
    return result
