def test_that_when_updating_function_code_fails_the_update_function_method_returns_error(self):
        with patch.dict(boto_lambda.__salt__, {'boto_iam.get_account_id': MagicMock(return_value='1234')}):
            self.conn.update_function_code.side_effect = ClientError(error_content, 'update_function_code')
            result = boto_lambda.update_function_code(FunctionName='testfunction',
                                                    S3Bucket='bucket',
                                                    S3Key='key',
                                                    **conn_parameters)
        self.assertEqual(result.get('error', {}).get('message'), error_message.format('update_function_code'))
tests False function not updated.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/boto_lambda_test.py/BotoLambdaFunctionTestCase.test_that_when_updating_function_code_fails_the_update_function_method_returns_error