示例#1
0
 def lsn_delete(self, context, lsn_id):
     lsn_db.lsn_remove(context, lsn_id)
     super(PersistentLsnManager, self).lsn_delete(context, lsn_id)
示例#2
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(lsn_db.Lsn).filter_by(lsn_id=self.lsn_id)
     self.assertRaises(orm.exc.NoResultFound, q.one)
示例#3
0
 def lsn_delete(self, context, lsn_id):
     lsn_db.lsn_remove(context, lsn_id)
     super(PersistentLsnManager, self).lsn_delete(context, lsn_id)
示例#4
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(lsn_db.Lsn).filter_by(lsn_id=self.lsn_id)
     self.assertRaises(orm.exc.NoResultFound, q.one)