def test_timeout_unaffected_when_explicitly_set(self):
    rpc.TRANSPORT.conf.rpc_response_timeout = 5
    ctx = self.client.prepare(topic='sandwiches', timeout=77)
    with testtools.ExpectedException(messaging.MessagingTimeout):
        ctx.call(self.call_context, 'create_pb_and_j')
    self.assertEqual(5, rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['create_pb_and_j'])
    self.assertFalse(self.sleep.called)
def test_timeout_unaffected_when_explicitly_set(self):
    rpc.TRANSPORT.conf.rpc_response_timeout = 5
    ctx = self.client.prepare(topic='sandwiches', timeout=77)
    with testtools.ExpectedException(messaging.MessagingTimeout):
        ctx.call(self.call_context, 'create_pb_and_j')
    self.assertEqual(5, rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['create_pb_and_j'])
    self.assertFalse(self.sleep.called)