From 825e13df3dc8a8255ccd48e335dcbf2f36ff2bf1 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Mon, 25 Jan 2010 17:36:41 +0100
Subject: [PATCH] Fix the mocks.py for 2.0 unittests

The recent change to use LogWarning with multiple arguments in
mpcu.py/HooksMaster broke the (simple) mock we have in the tests.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 test/mocks.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/test/mocks.py b/test/mocks.py
index 249cd7252..4c0ae072c 100644
--- a/test/mocks.py
+++ b/test/mocks.py
@@ -55,12 +55,16 @@ class FakeConfig:
 class FakeProc:
     """Fake processor object"""
 
-    def LogWarning(self, msg):
+    def LogWarning(self, msg, *args, **kwargs):
         pass
 
-    def LogInfo(self, msg):
+    def LogInfo(self, msg, *args, **kwargs):
         pass
 
+    def LogStep(self, current, total, message):
+        pass
+
+
 class FakeContext:
     """Fake context object"""
 
-- 
GitLab