def test_set_max_timeout_caps_all_methods(self):
    rpc.TRANSPORT.conf.rpc_response_timeout = 300
    rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'] = 100
    rpc.BackingOffClient.set_max_timeout(50)
    self.assertEqual(50, rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'])
    self.assertEqual(50, rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_2'])
def test_set_max_timeout_caps_all_methods(self):
    rpc.TRANSPORT.conf.rpc_response_timeout = 300
    rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'] = 100
    rpc.BackingOffClient.set_max_timeout(50)
    self.assertEqual(50, rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_1'])
    self.assertEqual(50, rpc._BackingOffContextWrapper._METHOD_TIMEOUTS['method_2'])