#NEWLINE# @ mock . patch . object ( vm_util , 'get_vm_extra_config_spec' , return_value = mock . sentinel . extra_config ) #NEWLINE# @ mock . patch . object ( vm_util , 'reconfigure_vm' ) #NEWLINE# def test_update_volume_details( self , reconfigure_vm , get_vm_extra_config_spec ) : #NEWLINE# #INDENT# volume_uuid = '26f5948e-52a3-4ee6-8d48-0a379afd0828' #NEWLINE# device_uuid = '0d86246a-2adb-470d-a9f7-bce09930c5d' #NEWLINE# self . _volumeops . _update_volume_details ( mock . sentinel . vm_ref , volume_uuid , self ) #NEWLINE# get_vm_extra_config_spec . assert_called_once_with ( self . _volumeops . _session . vim . client . factory , { #NEWLINE# #INDENT# ( 'volume-%s' % volume_uuid ) : device_uuid , #NEWLINE# #UNINDENT# } ) #NEWLINE# reconfigure_vm . assert_called_once_with ( self . _volumeops . _session , mock . sentinel . vm_ref , mock . sentinel . extra_config )