Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str keyword Str keyword Str keyword Str keyword Dict Str Str Str Str keyword Str keyword Num keyword Num keyword NameLoad keyword Dict Str Str ListLoad Str ListLoad Str attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad Call NameLoad Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword Dict Str Str Str Str keyword Str keyword Num keyword Num keyword NameLoad keyword Dict Str Str ListLoad Str ListLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad Str Num Num Str Str Dict Str Str Str ListLoad Str ListLoad Str Str Dict Str Num decorator_list NameLoad NameLoad Call NameLoad Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword Dict Str NameLoad keyword Str keyword Num keyword Num keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call NameLoad NameLoad Str Num Num Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Dict Str Str ListLoad ListLoad Dict Str Num decorator_list NameLoad Call NameLoad Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword Dict Str Str Str Str keyword Str keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Dict Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad Str Str Str Str Str Num Str Str Num Str Dict Str Str ListLoad ListLoad Dict Str Num decorator_list NameLoad NameLoad Call NameLoad Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword Dict Str Str Str Str keyword Str keyword Num keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str Num Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str attr attr attr Num Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str keyword Dict Str Str Str Str keyword Str keyword Num keyword Num keyword NameLoad Assign NameStore Dict Str Str Str Dict Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad Str Str Str Str Str Num Str Str Num Str Dict Str Str ListLoad ListLoad Dict Str Num Expr Call AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str attr attr ListLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr keyword Str attr attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str attr attr attr Num decorator_list NameLoad NameLoad Call NameLoad Str
N/A __future__ unicode_literals N/A botocore.client N/A boto3 N/A hashlib N/A io N/A zipfile N/A sure freezegun freeze_time moto mock_lambda mock_s3 get_test_zip_file N/A N/A N/A N/A N/A zip_output N/A N/A io BytesIO N/A zip_file N/A N/A zipfile ZipFile zip_output w N/A N/A N/A zip_file writestr lambda_function.py def handler(event, context):
    return "hello world"
 N/A N/A N/A zip_file close N/A N/A N/A zip_output seek 0 N/A N/A N/A zip_output read N/A test_list_functions N/A N/A N/A N/A N/A conn N/A N/A boto3 client lambda us-west-2 N/A result N/A N/A conn list_functions N/A N/A N/A N/A N/A N/A result N/A Functions should have length_of 0 N/A mock_lambda test_create_based_on_s3_with_missing_bucket N/A N/A N/A N/A N/A conn N/A N/A boto3 client lambda us-west-2 N/A N/A N/A N/A N/A N/A N/A N/A conn create_function when called_with FunctionName testFunction Runtime python2.7 Role test-iam-role Handler lambda_function.handler Code N/A S3Bucket S3Key this-bucket-does-not-exist test.zip Description test lambda function Timeout 3 MemorySize 128 Publish True VpcConfig N/A SecurityGroupIds SubnetIds N/A sg-123abc N/A subnet-123abc should throw N/A N/A botocore client ClientError N/A mock_lambda N/A freeze_time 2015-01-01 00:00:00 test_create_function_from_aws_bucket N/A N/A N/A N/A N/A s3_conn N/A N/A boto3 client s3 us-west-2 N/A N/A N/A s3_conn create_bucket Bucket test-bucket N/A zip_content N/A get_test_zip_file N/A N/A N/A s3_conn put_object Bucket test-bucket Key test.zip Body zip_content N/A conn N/A N/A boto3 client lambda us-west-2 N/A result N/A N/A conn create_function FunctionName testFunction Runtime python2.7 Role test-iam-role Handler lambda_function.handler Code N/A S3Bucket S3Key test-bucket test.zip Description test lambda function Timeout 3 MemorySize 128 Publish True VpcConfig N/A SecurityGroupIds SubnetIds N/A sg-123abc N/A subnet-123abc N/A N/A N/A N/A result should equal N/A FunctionName FunctionArn Runtime Role Handler CodeSha256 CodeSize Description Timeout MemorySize LastModified Version VpcConfig ResponseMetadata testFunction arn:aws:lambda:123456789012:function:testFunction python2.7 test-iam-role lambda_function.handler N/A N/A N/A N/A hashlib sha256 zip_content hexdigest N/A len zip_content test lambda function 3 128 2015-01-01 00:00:00 $LATEST N/A SecurityGroupIds SubnetIds VpcId N/A sg-123abc N/A subnet-123abc vpc-123abc N/A HTTPStatusCode 201 N/A mock_lambda mock_s3 N/A freeze_time 2015-01-01 00:00:00 test_create_function_from_zipfile N/A N/A N/A N/A N/A conn N/A N/A boto3 client lambda us-west-2 N/A zip_content N/A get_test_zip_file N/A result N/A N/A conn create_function FunctionName testFunction Runtime python2.7 Role test-iam-role Handler lambda_function.handler Code N/A ZipFile zip_content Description test lambda function Timeout 3 MemorySize 128 Publish True N/A N/A N/A N/A result should equal N/A FunctionName FunctionArn Runtime Role Handler CodeSize Description Timeout MemorySize LastModified CodeSha256 Version VpcConfig ResponseMetadata testFunction arn:aws:lambda:123456789012:function:testFunction python2.7 test-iam-role lambda_function.handler N/A len zip_content test lambda function 3 128 2015-01-01 00:00:00 N/A N/A N/A N/A hashlib sha256 zip_content hexdigest $LATEST N/A SecurityGroupIds SubnetIds N/A N/A N/A HTTPStatusCode 201 N/A mock_lambda N/A freeze_time 2015-01-01 00:00:00 test_get_function N/A N/A N/A N/A N/A s3_conn N/A N/A boto3 client s3 us-west-2 N/A N/A N/A s3_conn create_bucket Bucket test-bucket N/A zip_content N/A get_test_zip_file N/A N/A N/A s3_conn put_object Bucket test-bucket Key test.zip Body zip_content N/A conn N/A N/A boto3 client lambda us-west-2 N/A N/A N/A conn create_function FunctionName testFunction Runtime python2.7 Role test-iam-role Handler lambda_function.handler Code N/A S3Bucket S3Key test-bucket test.zip Description test lambda function Timeout 3 MemorySize 128 Publish True N/A result N/A N/A conn get_function FunctionName testFunction N/A N/A N/A N/A result should equal N/A Code Configuration ResponseMetadata N/A Location RepositoryType s3://lambda-functions.aws.amazon.com/test.zip S3 N/A CodeSha256 CodeSize Description FunctionArn FunctionName Handler LastModified MemorySize Role Runtime Timeout Version VpcConfig N/A N/A N/A N/A hashlib sha256 zip_content hexdigest N/A len zip_content test lambda function arn:aws:lambda:123456789012:function:testFunction testFunction lambda_function.handler 2015-01-01 00:00:00 128 test-iam-role python2.7 3 $LATEST N/A SecurityGroupIds SubnetIds N/A N/A N/A HTTPStatusCode 200 N/A mock_lambda mock_s3 N/A freeze_time 2015-01-01 00:00:00 test_delete_function N/A N/A N/A N/A N/A s3_conn N/A N/A boto3 client s3 us-west-2 N/A N/A N/A s3_conn create_bucket Bucket test-bucket N/A zip_content N/A get_test_zip_file N/A N/A N/A s3_conn put_object Bucket test-bucket Key test.zip Body zip_content N/A conn N/A N/A boto3 client lambda us-west-2 N/A N/A N/A conn create_function FunctionName testFunction Runtime python2.7 Role test-iam-role Handler lambda_function.handler Code N/A S3Bucket S3Key test-bucket test.zip Description test lambda function Timeout 3 MemorySize 128 Publish True N/A success_result N/A N/A conn delete_function FunctionName testFunction N/A N/A N/A N/A success_result should equal N/A ResponseMetadata N/A HTTPStatusCode 204 N/A N/A N/A N/A N/A N/A N/A N/A conn delete_function when called_with FunctionName testFunctionThatDoesntExist should throw N/A N/A botocore client ClientError N/A mock_lambda mock_s3 test_list_create_list_get_delete_list N/A N/A N/A N/A N/A 
    test `list -> create -> list -> get -> delete -> list` integration

     N/A s3_conn N/A N/A boto3 client s3 us-west-2 N/A N/A N/A s3_conn create_bucket Bucket test-bucket N/A zip_content N/A get_test_zip_file N/A N/A N/A s3_conn put_object Bucket test-bucket Key test.zip Body zip_content N/A conn N/A N/A boto3 client lambda us-west-2 N/A N/A N/A N/A N/A N/A N/A N/A conn list_functions N/A Functions should have length_of 0 N/A N/A N/A conn create_function FunctionName testFunction Runtime python2.7 Role test-iam-role Handler lambda_function.handler Code N/A S3Bucket S3Key test-bucket test.zip Description test lambda function Timeout 3 MemorySize 128 Publish True N/A expected_function_result N/A Code Configuration ResponseMetadata N/A Location RepositoryType s3://lambda-functions.aws.amazon.com/test.zip S3 N/A CodeSha256 CodeSize Description FunctionArn FunctionName Handler LastModified MemorySize Role Runtime Timeout Version VpcConfig N/A N/A N/A N/A hashlib sha256 zip_content hexdigest N/A len zip_content test lambda function arn:aws:lambda:123456789012:function:testFunction testFunction lambda_function.handler 2015-01-01 00:00:00 128 test-iam-role python2.7 3 $LATEST N/A SecurityGroupIds SubnetIds N/A N/A N/A HTTPStatusCode 200 N/A N/A N/A N/A N/A N/A N/A conn list_functions N/A Functions should equal N/A N/A expected_function_result N/A Configuration N/A N/A N/A N/A N/A N/A conn get_function FunctionName testFunction should equal expected_function_result N/A N/A N/A conn delete_function FunctionName testFunction N/A N/A N/A N/A N/A N/A N/A N/A conn list_functions N/A Functions should have length_of 0 N/A mock_lambda mock_s3 N/A freeze_time 2015-01-01 00:00:00