#NEWLINE# def test_create_subnet_with_subnetpool_ipv6_and_ip_ver_ignored( self ) : #NEWLINE# #INDENT# resource = 'subnet' #NEWLINE# cmd = subnet . CreateSubnet ( test_cli20 . MyApp ( sys . stdout ) , None ) #NEWLINE# name = 'myname' #NEWLINE# myid = 'myid' #NEWLINE# netid = 'netid' #NEWLINE# args = [ '--tenant_id' , 'tenantid' , '--ip-version' , '4' , '--subnetpool' , 'subnetpool_id' , self ] #NEWLINE# position_names = [ 'ip_version' , 'network_id' , 'subnetpool_id' ] #NEWLINE# position_values = [ 6 , netid , 'subnetpool_id' ] #NEWLINE# self . mox . StubOutWithMock ( neutronV20 , 'find_resource_by_name_or_id' ) #NEWLINE# neutronV20 . find_resource_by_name_or_id ( self . client , 'subnetpool' , 'subnetpool_id' ) . AndReturn ( { #NEWLINE# #INDENT# 'id' : 'subnetpool_id' , #NEWLINE# 'ip_version' : 6 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . _test_create_resource ( resource , cmd , name , myid , args , position_names , position_values , tenant_id = 'tenantid' )