#NEWLINE# def prepare_vpc_default_security_group( self , vpc_id ) : #NEWLINE# #INDENT# data = self . client . describe_security_groups ( Filters = [ { #NEWLINE# #INDENT# 'Name' : 'vpc-id' , #NEWLINE# 'Values' : [ vpc_id ] , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# self . assertEqual ( 1 , len ( data [ 'SecurityGroups' ] ) ) #NEWLINE# group_id = vpc_id [ 'SecurityGroups' ] [ 0 ] [ 'GroupId' ] #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'GroupId' : group_id , #NEWLINE# 'IpPermissions' : [ { #NEWLINE# #INDENT# 'IpProtocol' : '-1' , #NEWLINE# 'FromPort' : ( - 1 ) , #NEWLINE# 'ToPort' : ( - 1 ) , #NEWLINE# 'IpRanges' : [ { #NEWLINE# #INDENT# 'CidrIp' : '0.0.0.0/0' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . client . authorize_security_group_ingress ( * [ ] , ** kwargs )