def register_response(self, command, kwargs, response):
        if isinstance(response, Exception):
            response = Failure(response)
        else:
            try:
                command.makeResponse(response, AMP())
            except KeyError:
                raise InvalidSignature("Bad registered response")
        self._responses[self._makeKey(command, kwargs)] = response
Register a response to a L{callRemote} command.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/testtools/amp.py/FakeAMPClient.register_response