Beispiel #1
0
 def destroy(self):
     with self.obj_as_admin():
         db.plan_destroy(self._context, self.id)
Beispiel #2
0
 def test_plan_destroy(self):
     plan = db.plan_create(self.ctxt, self.fake_plan)
     db.plan_destroy(self.ctxt, plan['id'])
     self.assertRaises(exception.PlanNotFound, db.plan_get,
                       self.ctxt, plan['id'])
 def test_plan_destroy(self):
     plan = db.plan_create(self.ctxt, self.fake_plan)
     db.plan_destroy(self.ctxt, plan['id'])
     self.assertRaises(exception.PlanNotFound, db.plan_get, self.ctxt,
                       plan['id'])
Beispiel #4
0
 def destroy(self):
     with self.obj_as_admin():
         db.plan_destroy(self._context, self.id)