summaryrefslogtreecommitdiff
path: root/tests/unittests/test_util.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-08-09 13:42:55 -0400
committerScott Moser <smoser@ubuntu.com>2012-08-09 13:42:55 -0400
commit0243c5d9c7948e247a85870a24835e2f5ce92cb0 (patch)
treeb67c2911c07b013f893f1ac0c8428a99c9095628 /tests/unittests/test_util.py
parent1bb67be5bd8c826717c9757f727406c73c7ef4e8 (diff)
parent0849ad447de8a1628e6b0158a5ce9b45d93f9bb8 (diff)
downloadvyos-cloud-init-0243c5d9c7948e247a85870a24835e2f5ce92cb0.tar.gz
vyos-cloud-init-0243c5d9c7948e247a85870a24835e2f5ce92cb0.zip
fix pylint in all files used by ./tools/run-pylint
'make pylint' was not checking tests and tools. This fixies a bunch of pylint/pep8 issues in that code. It also enables 'make pylint' to check them.
Diffstat (limited to 'tests/unittests/test_util.py')
-rw-r--r--tests/unittests/test_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_util.py b/tests/unittests/test_util.py
index 93979f06..19f66cc4 100644
--- a/tests/unittests/test_util.py
+++ b/tests/unittests/test_util.py
@@ -14,7 +14,7 @@ class FakeSelinux(object):
self.match_what = match_what
self.restored = []
- def matchpathcon(self, path, mode):
+ def matchpathcon(self, path, mode): # pylint: disable=W0613
if path == self.match_what:
return
else:
@@ -23,7 +23,7 @@ class FakeSelinux(object):
def is_selinux_enabled(self):
return True
- def restorecon(self, path, recursive):
+ def restorecon(self, path, recursive): # pylint: disable=W0613
self.restored.append(path)