#NEWLINE# def test_set_this( self ) : #NEWLINE# #INDENT# arglist = [ self . _network . name , '--enable' , '--name' , 'noob' , '--share' , '--external' , '--default' , '--provider-network-type' , 'vlan' , '--provider-physical-network' , 'physnet1' , '--provider-segment' , '400' ] #NEWLINE# verifylist = [ ( 'network' , self . _network . name ) , ( 'enable' , True ) , ( 'name' , 'noob' ) , ( 'share' , True ) , ( 'external' , True ) , ( 'default' , True ) , ( 'provider_network_type' , 'vlan' ) , ( 'physical_network' , 'physnet1' ) , ( 'segmentation_id' , '400' ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# result = self . cmd . take_action ( parsed_args ) #NEWLINE# attrs = { #NEWLINE# #INDENT# 'name' : 'noob' , #NEWLINE# 'admin_state_up' : True , #NEWLINE# 'shared' : True , #NEWLINE# 'router:external' : True , #NEWLINE# 'is_default' : True , #NEWLINE# 'provider:network_type' : 'vlan' , #NEWLINE# 'provider:physical_network' : 'physnet1' , #NEWLINE# 'provider:segmentation_id' : '400' , #NEWLINE# #UNINDENT# } #NEWLINE# self . network . update_network . assert_called_once_with ( self . _network , ** attrs ) #NEWLINE# self . assertIsNone ( result )