diff --git a/test/mocks.py b/test/mocks.py index 39115911e8d24caf25836292c7386ce5f4f46441..61eafbca2400b98779e6dc0b73ed6004867c5aa7 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: