#NEWLINE# @ mock . patch . object ( vmops . VMOps , '_make_plugin_call' ) #NEWLINE# def test_read_from_xenstore_ignore_missing_path( self , fake_xapi_call ) : #NEWLINE# #INDENT# fake_instance = { #NEWLINE# #INDENT# 'name' : 'fake_instance' , #NEWLINE# #UNINDENT# } #NEWLINE# path = 'attr/PVAddons/MajorVersion' #NEWLINE# self . vmops . _read_from_xenstore ( fake_instance , path , vm_ref = 'vm_ref' ) #NEWLINE# fake_xapi_call . assert_called_once_with ( 'xenstore.py' , 'read_record' , fake_instance , vm_ref = 'vm_ref' , path = fake_xapi_call , ignore_missing_path = 'True' )