ó ByòYc@s9ddlZddlmZddlmZd„ZdS(i˙˙˙˙N(twraps(tMY_FUNCTION_ARNcs"tˆƒd‡fd†ƒ}|S(sÑ mock decorates _invoke_internal by checking if MY_FUNCTION_ARN is present if MY_FUNCTION_ARN is present, the actual _invoke_internal is invoked otherwise, the mock _invoke_internal is invoked tRequestResponsecsŠtdkrp|dkr:itjidd6ƒd6dd6S|dkrXidd6dd6Stdj|ƒƒ‚nˆ|||||ƒSdS( NRt TestValuetTestKeytPayloadtt FunctionErrortEventsUnsupported invocation type {}(RtNonetjsontdumpst Exceptiontformat(tselft function_arntpayloadtclient_contexttinvocation_type(tfunc(s‘/rhel5pdi/workplace/yunusko/lambda-blueprints/src/LambdaConsoleResources/blueprints/greengrass-hello-world/test/../greengrasssdk/utils/testing.pytmock_invoke_internals    (R(RR((Rs‘/rhel5pdi/workplace/yunusko/lambda-blueprints/src/LambdaConsoleResources/blueprints/greengrass-hello-world/test/../greengrasssdk/utils/testing.pytmock s (R t functoolsRtgreengrass_common.env_varsRR(((s‘/rhel5pdi/workplace/yunusko/lambda-blueprints/src/LambdaConsoleResources/blueprints/greengrass-hello-world/test/../greengrasssdk/utils/testing.pyts