def test_alias_max_concurreny(self): ref_value = 10 config = TransferConfig(max_concurrency=ref_value) self.assert_value_of_actual_and_alias( config, 'max_request_concurrency', 'max_concurrency', ref_value) # Set a new value using the alias new_value = 15 config.max_concurrency = new_value # Make sure it sets the value for both the alias and the actual # value that will be used in the TransferManager self.assert_value_of_actual_and_alias( config, 'max_request_concurrency', 'max_concurrency', new_value)
def test_alias_max_concurreny(self): ref_value = 10 config = TransferConfig(max_concurrency=ref_value) self.assert_value_of_actual_and_alias(config, 'max_request_concurrency', 'max_concurrency', ref_value) # Set a new value using the alias new_value = 15 config.max_concurrency = new_value # Make sure it sets the value for both the alias and the actual # value that will be used in the TransferManager self.assert_value_of_actual_and_alias(config, 'max_request_concurrency', 'max_concurrency', new_value)