'Ensure delete succeeds when the snapmirror does not exist.'

def test_delete_snapmirror_error_deleting(self):

    mock_src_client = mock.Mock()
    mock_dest_client = mock.Mock()
    mock_dest_client.delete_snapmirror.side_effect = netapp_api.NaApiError(code=netapp_api.ESOURCE_IS_DIFFERENT)
    self.mock_object(utils, 'get_client_for_backend', side_effect=[mock_dest_client, mock_src_client])
    self.dm_mixin.delete_snapmirror(self.src_backend, self.dest_backend, self.src_flexvol_name, self.dest_flexvol_name)
    mock_dest_client.abort_snapmirror.assert_called_once_with(self.src_vserver, self.src_flexvol_name, self.dest_vserver, self.dest_flexvol_name, clear_checkpoint=False)
    mock_dest_client.delete_snapmirror.assert_called_once_with(self.src_vserver, self.src_flexvol_name, self.dest_vserver, self.dest_flexvol_name)
    mock_src_client.release_snapmirror.assert_called_once_with(self.src_vserver, self.src_flexvol_name, self.dest_vserver, self.dest_flexvol_name)
