def testExpiredStreamRequestUnaryResponse(self):
    for ((group, method), test_messages_sequence) in six.iteritems(self._digest.stream_unary_messages_sequences):
        for test_messages in test_messages_sequence:
            requests = test_messages.requests()
            callback = _Callback()
            with self._control.pause():
                response_future = self._invoker.future(group, method)(iter(requests), _3069_test_constant.REALLY_SHORT_TIMEOUT)
                response_future.add_done_callback(callback)
                self.assertIs(callback.future(), response_future)
                self.assertIsInstance(response_future.exception(), face.ExpirationError)
                with self.assertRaises(face.ExpirationError):
                    response_future.result()
def testExpiredStreamRequestUnaryResponse(self):
    for ((group, method), test_messages_sequence) in six.iteritems(self._digest.stream_unary_messages_sequences):
        for test_messages in test_messages_sequence:
            requests = test_messages.requests()
            callback = _Callback()
            with self._control.pause():
                response_future = self._invoker.future(group, method)(iter(requests), _3069_test_constant.REALLY_SHORT_TIMEOUT)
                response_future.add_done_callback(callback)
                self.assertIs(callback.future(), response_future)
                self.assertIsInstance(response_future.exception(), face.ExpirationError)
                with self.assertRaises(face.ExpirationError):
                    response_future.result()