Merge "Ignore irrelevant secgroup form field errors"

This commit is contained in:
Jenkins 2013-10-14 10:06:39 +00:00 committed by Gerrit Code Review
commit 99e085df72
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ def create_stubs(stubs_to_create={}):
def inner_stub_out(fn):
@wraps(fn)
def instance_stub_out(self):
def instance_stub_out(self, *args, **kwargs):
for key in stubs_to_create:
if not (isinstance(stubs_to_create[key], tuple) or
isinstance(stubs_to_create[key], list)):
@ -80,7 +80,7 @@ def create_stubs(stubs_to_create={}):
for value in stubs_to_create[key]:
self.mox.StubOutWithMock(key, value)
return fn(self)
return fn(self, *args, **kwargs)
return instance_stub_out
return inner_stub_out