#NEWLINE# @ mock . patch . object ( greenthread , 'sleep' ) #NEWLINE# def test_wait_for_vhd_coalesce_leaf_node( self , mock_sleep ) : #NEWLINE# #INDENT# instance = { #NEWLINE# #INDENT# 'uuid' : 'fake' , #NEWLINE# #UNINDENT# } #NEWLINE# vm_utils . _wait_for_vhd_coalesce ( 'session' , instance , 'sr_ref' , 'vdi_ref' , [ 'uuid' ] ) #NEWLINE# self . assertFalse ( mock_sleep . called )