def testSuccessfulUnaryRequestUnaryResponse(self):
    for ((group, method), test_messages_sequence) in six.iteritems(self._digest.unary_unary_messages_sequences):
        for test_messages in test_messages_sequence:
            request = test_messages.request()
            callback = _Callback()
            response_future = self._invoker.future(group, method)(request, test_constants.LONG_TIMEOUT)
            response_future.add_done_callback(callback)
            response = response_future.result()
            test_messages.verify(request, response, self)
            self.assertIs(callback.future(), response_future)
def testSuccessfulUnaryRequestUnaryResponse(self):
    for ((group, method), test_messages_sequence) in six.iteritems(self._digest.unary_unary_messages_sequences):
        for test_messages in test_messages_sequence:
            request = test_messages.request()
            callback = _Callback()
            response_future = self._invoker.future(group, method)(request, test_constants.LONG_TIMEOUT)
            response_future.add_done_callback(callback)
            response = response_future.result()
            test_messages.verify(request, response, self)
            self.assertIs(callback.future(), response_future)