'test delete snapshot'

@mock.patch.object(cnfs.VeritasCNFSDriver, '_ensure_share_mounted')
@mock.patch.object(cnfs.VeritasCNFSDriver, 'local_path')
def test_delete_snapshot(self, m_local_path, m_ensure_share_mounted):

    drv = self.driver
    snapshot = fake_snapshot.fake_snapshot_obj(context.get_admin_context(), provider_location=self._loc)
    m_ensure_share_mounted(self._loc).AndReturn(None)
    m_local_path(snapshot).AndReturn(self.TEST_SNAP_LOCAL_PATH)
    with mock.patch.object(drv, '_execute'):
        drv.delete_snapshot(snapshot)
