#NEWLINE# def test_IpPermissions_with_group_id( self ) : #NEWLINE# #INDENT# json = '[{"FromPort":8000,"ToPort":9000,"IpProtocol":"tcp","IpRanges":[{"CidrIp":"192.168.100.0/24"}]}]' #NEWLINE# args = ( json . prefix + ( '--group-id sg-12345678 --ip-permissions %s' % json ) ) #NEWLINE# result = { #NEWLINE# #INDENT# 'GroupId' : 'sg-12345678' , #NEWLINE# 'IpPermissions' : [ { #NEWLINE# #INDENT# 'FromPort' : 8000 , #NEWLINE# 'ToPort' : 9000 , #NEWLINE# 'IpProtocol' : 'tcp' , #NEWLINE# 'IpRanges' : [ { #NEWLINE# #INDENT# 'CidrIp' : '192.168.100.0/24' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . assert_params_for_cmd ( args , result )