summaryrefslogtreecommitdiff
path: root/tests/unittests/helpers.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-09-26 16:40:07 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-09-26 16:40:07 -0700
commit4a5d5a044db9e77b931fb4df93f7c01b02021f44 (patch)
tree24b67e58e2c5c193dc2b98c1a88ed1cf8e2a4a70 /tests/unittests/helpers.py
parentf31a4e80aaaafca79eb6c808c81a6067f0c493b8 (diff)
downloadvyos-cloud-init-4a5d5a044db9e77b931fb4df93f7c01b02021f44.tar.gz
vyos-cloud-init-4a5d5a044db9e77b931fb4df93f7c01b02021f44.zip
Fixup some pylint warnings.
Diffstat (limited to 'tests/unittests/helpers.py')
-rw-r--r--tests/unittests/helpers.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/unittests/helpers.py b/tests/unittests/helpers.py
index d7aebdee..7b829f24 100644
--- a/tests/unittests/helpers.py
+++ b/tests/unittests/helpers.py
@@ -1,7 +1,5 @@
import os
-import mocker
-
from mocker import MockerTestCase
from cloudinit import helpers as ch
@@ -84,7 +82,7 @@ class FilesystemMockingTestCase(ResourceUsingTestCase):
def replicateTestRoot(self, example_root, target_root):
real_root = self.resourceLocation()
real_root = os.path.join(real_root, 'roots', example_root)
- for (dir_path, dirnames, filenames) in os.walk(real_root):
+ for (dir_path, _dirnames, filenames) in os.walk(real_root):
real_path = dir_path
make_path = rebase_path(real_path[len(real_root):], target_root)
util.ensure_dir(make_path)
@@ -122,13 +120,13 @@ class FilesystemMockingTestCase(ResourceUsingTestCase):
# Handle subprocess calls
func = getattr(util, 'subp')
- def nsubp(*args, **kwargs):
+ def nsubp(*_args, **_kwargs):
return ('', '')
setattr(util, 'subp', nsubp)
self.patched_funcs.append((util, 'subp', func))
- def null_func(*args, **kwargs):
+ def null_func(*_args, **_kwargs):
return None
for f in ['chownbyid', 'chownbyname']: