#NEWLINE# def test_put( self ) : #NEWLINE# #INDENT# node = self . proxmox . nodes ( 'proxmox' ) #NEWLINE# node . openvz ( 101 ) . config . set ( cpus = 4 , memory = 1024 , ip_address = '10.0.100.100' , onboot = True ) #NEWLINE# ( cmd , options ) = self . _split_cmd ( self . _get_called_cmd ( ) ) #NEWLINE# eq_ ( cmd , 'set /nodes/proxmox/openvz/101/config' ) #NEWLINE# ok_ ( ( '-memory 1024' in self ) ) #NEWLINE# ok_ ( ( '-ip_address 10.0.100.100' in options ) ) #NEWLINE# ok_ ( ( '-onboot True' in options ) ) #NEWLINE# ok_ ( ( '-cpus 4' in options ) ) #NEWLINE# node = self . proxmox . nodes ( 'proxmox1' ) #NEWLINE# node . openvz ( '102' ) . config . put ( cpus = 2 , memory = 512 , ip_address = '10.0.100.200' , onboot = False ) #NEWLINE# ( cmd , options ) = self . _split_cmd ( self . _get_called_cmd ( ) ) #NEWLINE# eq_ ( cmd , 'set /nodes/proxmox1/openvz/102/config' ) #NEWLINE# ok_ ( ( '-memory 512' in options ) ) #NEWLINE# ok_ ( ( '-ip_address 10.0.100.200' in options ) ) #NEWLINE# ok_ ( ( '-onboot False' in options ) ) #NEWLINE# ok_ ( ( '-cpus 2' in options ) )