#NEWLINE# @ mock . patch . object ( vm_utils , '_child_vhds' ) #NEWLINE# def test_delete_snapshots_in_vdi_chain_no_snapshots( self , mock_child ) : #NEWLINE# #INDENT# instance = { #NEWLINE# #INDENT# 'uuid' : 'fake' , #NEWLINE# #UNINDENT# } #NEWLINE# mock_child . return_value = [ ] #NEWLINE# vm_utils . _delete_snapshots_in_vdi_chain ( 'session' , mock_child , [ 'uuid1' , 'uuid2' ] , 'sr' ) #NEWLINE# mock_child . assert_called_once_with ( 'session' , 'sr' , [ 'uuid2' ] , old_snapshots_only = True )