def testRunLUWithPrereqErrorMissingECode(self): prereq = errors.OpPrereqError(self.op) lu = mocks.FakeLU(self.proc, self.op, self.cfg, self.rpc, prereq) self.assertRaises(errors.OpPrereqError, self.proc._LockAndExecLU, lu, locking.LEVEL_CLUSTER, self.calc_timeout)
def testRunLU(self): lu = mocks.FakeLU(self.proc, self.op, self.cfg, self.rpc, None) self.proc._ExecLU(lu)