def lsn_delete(self, context, lsn_id): lsn_db.lsn_remove(context, lsn_id) super(PersistentLsnManager, self).lsn_delete(context, lsn_id)
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)