Fix linting issues in test files

This commit is contained in:
Alex Kavanagh 2016-05-20 15:08:57 +00:00
parent 956554175f
commit ba30ae763f
2 changed files with 9 additions and 7 deletions

View File

@ -11,13 +11,15 @@ import reactive.barbican_handlers as handlers
_when_args = {}
_when_not_args = {}
def mock_hook_factory(d):
def mock_hook(*args, **kwargs):
def inner(f):
# remember what we were passed. Note that we can't actually determine
# the class we're attached to, as the decorator only gets the function.
# remember what we were passed. Note that we can't actually
# determine the class we're attached to, as the decorator only gets
# the function.
try:
d[f.__name__].append(dict(args=args, kwargs=kwargs))
except KeyError:

View File

@ -147,7 +147,7 @@ class TestBarbicanCharm(Helper):
def test__init__(self):
self.patch(barbican.ch_utils, 'os_release')
b = barbican.BarbicanCharm()
barbican.BarbicanCharm()
self.os_release.assert_called_once_with('python-keystonemiddleware')
def test_install(self):