def test_that_when_updating_a_function_succeeds_the_update_function_method_returns_true(self):
        with patch.dict(boto_lambda.__salt__, {'boto_iam.get_account_id': MagicMock(return_value='1234')}):
            self.conn.update_function_config.return_value = function_ret
            result = boto_lambda.update_function_config(FunctionName=function_ret['FunctionName'], Role='myrole', **conn_parameters)

        self.assertTrue(result['updated'])
Build a mask using np.eye.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/boto_lambda_test.py/BotoLambdaFunctionTestCase.test_that_when_updating_a_function_succeeds_the_update_function_method_returns_true--crossover with--dataset/ETHPy150Open quantopian/zipline/tests/pipeline/base.py/BasePipelineTestCase.eye_mask