def test_timeout_unchanged_on_other_exception(self):
    rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'] = 1
    rpc.TRANSPORT._send.side_effect = ValueError
    with testtools.ExpectedException(ValueError):
        self.client.call(self.call_context, 'method_1')
    rpc.TRANSPORT._send.side_effect = messaging.MessagingTimeout
    with testtools.ExpectedException(messaging.MessagingTimeout):
        self.client.call(self.call_context, 'method_1')
    timeouts = [call[1]['timeout'] for call in rpc.TRANSPORT._send.call_args_list]
    self.assertEqual([1, 1], timeouts)
def test_timeout_unchanged_on_other_exception(self):
    rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'] = 1
    rpc.TRANSPORT._send.side_effect = ValueError
    with testtools.ExpectedException(ValueError):
        self.client.call(self.call_context, 'method_1')
    rpc.TRANSPORT._send.side_effect = messaging.MessagingTimeout
    with testtools.ExpectedException(messaging.MessagingTimeout):
        self.client.call(self.call_context, 'method_1')
    timeouts = [call[1]['timeout'] for call in rpc.TRANSPORT._send.call_args_list]
    self.assertEqual([1, 1], timeouts)