#NEWLINE# def test_inject_hostname_with_rescue_prefix( self ) : #NEWLINE# #INDENT# instance = { #NEWLINE# #INDENT# 'hostname' : 'dummy' , #NEWLINE# 'os_type' : 'fake' , #NEWLINE# 'uuid' : 'uuid' , #NEWLINE# #UNINDENT# } #NEWLINE# vm_ref = 'vm_ref' #NEWLINE# self . mox . StubOutWithMock ( self . vmops , '_add_to_param_xenstore' ) #NEWLINE# self . vmops . _add_to_param_xenstore ( self , 'vm-data/hostname' , 'RESCUE-dummy' ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . vmops . _inject_hostname ( instance , vm_ref , rescue = True )