#NEWLINE# def test_both( self ) : #NEWLINE# #INDENT# json = '[{"FromPort":8000,"ToPort":9000,"IpProtocol":"tcp","IpRanges":[{"CidrIp":"192.168.100.0/24"}]}]' #NEWLINE# args = ( self . prefix + ( '--group-name foobar --port 100 --ip-permissions %s' % json ) ) #NEWLINE# self . assert_params_for_cmd ( args , expected_rc = 255 )