def test_plan_update(self): plan = db.plan_create(self.ctxt, self.fake_plan) db.plan_update(self.ctxt, plan['id'], {'status': 'started'}) plan = db.plan_get(self.ctxt, plan['id']) self.assertEqual('started', plan['status'])
def test_plan_get(self): plan = db.plan_create(self.ctxt, self.fake_plan) self._assertEqualObjects(plan, db.plan_get(self.ctxt, plan['id']), ignored_keys='resources')