예제 #1
0
 def destroy(self):
     with self.obj_as_admin():
         db.plan_destroy(self._context, self.id)
예제 #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'])
예제 #3
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'])
예제 #4
0
파일: plan.py 프로젝트: openstack/smaug
 def destroy(self):
     with self.obj_as_admin():
         db.plan_destroy(self._context, self.id)