def test_method_timeout_10x_config_ceiling(self):
    rpc.TRANSPORT.conf.rpc_response_timeout = 10
    for i in range(5):
        with testtools.ExpectedException(messaging.MessagingTimeout):
            self.client.call(self.call_context, 'method_1')
    self.assertEqual((1 * rpc.TRANSPORT.conf.rpc_response_timeout), rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'])
    with testtools.ExpectedException(messaging.MessagingTimeout):
        self.client.call(self.call_context, 'method_1')
    self.assertEqual((1 * rpc.TRANSPORT.conf.rpc_response_timeout), rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'])
def test_method_timeout_10x_config_ceiling(self):
    rpc.TRANSPORT.conf.rpc_response_timeout = 10
    for i in range(5):
        with testtools.ExpectedException(messaging.MessagingTimeout):
            self.client.call(self.call_context, 'method_1')
    self.assertEqual((1 * rpc.TRANSPORT.conf.rpc_response_timeout), rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'])
    with testtools.ExpectedException(messaging.MessagingTimeout):
        self.client.call(self.call_context, 'method_1')
    self.assertEqual((1 * rpc.TRANSPORT.conf.rpc_response_timeout), rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'])