From e8906f7d1401b361a0f00975b3b952e6b25e49e1 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Thu, 4 Aug 2011 16:20:34 +0200 Subject: [PATCH] Fix unittest failure after list_owned changes We just need an object that has a list_owned method. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- test/mocks.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/mocks.py b/test/mocks.py index 39115911e..61eafbca2 100644 --- a/test/mocks.py +++ b/test/mocks.py @@ -1,7 +1,7 @@ # # -# Copyright (C) 2006, 2007, 2010 Google Inc. +# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -75,12 +75,19 @@ class FakeProc: pass +class FakeGLM: + """Fake global lock manager object""" + + def list_owned(self, level): + return set() + + class FakeContext: """Fake context object""" def __init__(self): self.cfg = FakeConfig() - self.glm = None + self.glm = FakeGLM() class FakeGetentResolver: -- GitLab