def test_batch_find_param_help(self): model = TestObj() model.__doc__ = """ :param pool_id: The id of the pool to get. :type pool_id: str :param pool_get_options: Additional parameters for the operation :type pool_get_options: :class:`PoolGetOptions <azure.batch.models.PoolGetOptions>` """ self.assertEqual(_command_type.find_param_help(model, 'pool_id'), 'The id of the pool to get.') self.assertEqual( _command_type.find_param_help(model, 'pool_get_options'), 'Additional parameters for the operation') model.__doc__ = """ :param node_fill_type: How tasks should be distributed across compute nodes. Possible values include: 'spread', 'pack', 'unmapped' :type node_fill_type: str or :class:`ComputeNodeFillType <azure.batch.models.ComputeNodeFillType>` """ self.assertEqual( _command_type.find_param_help(model, 'node_fill_type'), "How tasks should be distributed across compute nodes. " + "Possible values include: 'spread', 'pack', 'unmapped'")
def test_batch_find_param_help(self): model = TestObj() model.__doc__ = """ :param pool_id: The id of the pool to get. :type pool_id: str :param pool_get_options: Additional parameters for the operation :type pool_get_options: ~azure.batch.models.PoolGetOptions """ self.assertEqual(_command_type.find_param_help(model, 'pool_id'), 'The id of the pool to get.') self.assertEqual(_command_type.find_param_help(model, 'pool_get_options'), 'Additional parameters for the operation') model.__doc__ = """ :param node_fill_type: How tasks should be distributed across compute nodes. Possible values include: 'spread', 'pack' :type node_fill_type: str or ~azure.batch.models.ComputeNodeFillType """ self.assertEqual(_command_type.find_param_help(model, 'node_fill_type'), "How tasks should be distributed across compute nodes. " + "Possible values include: 'spread', 'pack'")