Skip to content
Snippets Groups Projects
Commit e8906f7d authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix unittest failure after list_owned changes


We just need an object that has a list_owned method.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 12126847
No related branches found
No related tags found
No related merge requests found
#
#
# 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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment