From f4555db2d7d381aaf5ccedd676b80ad467f493a1 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Tue, 8 Jul 2008 08:49:29 +0000 Subject: [PATCH] mocks: create a FakeContext object This will be passed to FakeLUs Reviewed-by: iustinp --- test/mocks.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/mocks.py b/test/mocks.py index cfff9c25f..442709c15 100644 --- a/test/mocks.py +++ b/test/mocks.py @@ -67,3 +67,12 @@ class FakeProc: def LogInfo(self, msg): pass + +class FakeContext: + """Fake context object""" + + def __init__(self): + self.cfg = FakeConfig() + # TODO: decide what features a mock Ganeti Lock Manager must have + self.GLM = None + -- GitLab