Ejemplo n.º 1
0
 def test_lsn_remove(self):
     lsn_db.lsn_add(self.ctx, self.net_id, self.lsn_id)
     lsn_db.lsn_remove(self.ctx, self.lsn_id)
     q = self.ctx.session.query(nsx_models.Lsn).filter_by(
         lsn_id=self.lsn_id)
     self.assertRaises(orm.exc.NoResultFound, q.one)
Ejemplo n.º 2
0
 def lsn_delete(self, context, lsn_id):
     lsn_db.lsn_remove(context, lsn_id)
     super(PersistentLsnManager, self).lsn_delete(context, lsn_id)