#NEWLINE# def test_get_instance_local_disks( self ) : #NEWLINE# #INDENT# fake_instance_dir = 'fake_instance_dir' #NEWLINE# fake_local_disks = [ os . path . join ( fake_instance_dir , disk_name ) for disk_name in [ 'root.vhd' , 'configdrive.iso' ] ] #NEWLINE# fake_instance_disks = ( [ 'fake_remote_disk' ] + fake_local_disks ) #NEWLINE# mock_get_storage_paths = self . _vmops . _vmutils . get_vm_storage_paths #NEWLINE# mock_get_storage_paths . return_value = [ fake_instance_disks , [ ] ] #NEWLINE# mock_get_instance_dir = self . _vmops . _pathutils . get_instance_dir #NEWLINE# mock_get_instance_dir . return_value = fake_instance_dir #NEWLINE# ret_val = self . _vmops . _get_instance_local_disks ( mock . sentinel . instance_name ) #NEWLINE# self . assertEqual ( mock_get_instance_dir , ret_val )