def test_that_when_describing_function_it_returns_the_dict_of_properties_returns_true(self):
        self.conn.list_functions.return_value = {'Functions': [function_ret]}

        with patch.dict(boto_lambda.__salt__, {'boto_iam.get_account_id': MagicMock(return_value='1234')}):
            result = boto_lambda.describe_function(FunctionName=function_ret['FunctionName'], **conn_parameters)

        self.assertEqual(result, {'function': function_ret})
Tests describing parameters if function exists
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/boto_lambda_test.py/BotoLambdaFunctionTestCase.test_that_when_describing_function_it_returns_the_dict_of_properties_returns_true