summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-02-10 20:51:59 -0500
committerScott Moser <smoser@ubuntu.com>2015-02-10 20:51:59 -0500
commitf5f280cae778bd214b91664f28d9eed997fbcda5 (patch)
tree16fbbba437e1ad9db062552f18bd546168f41e1d /tests
parentf67d459da3d81f3b4c4c4171eaf5940dbc73ea25 (diff)
downloadvyos-cloud-init-f5f280cae778bd214b91664f28d9eed997fbcda5.tar.gz
vyos-cloud-init-f5f280cae778bd214b91664f28d9eed997fbcda5.zip
pep8
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_data.py1
-rw-r--r--tests/unittests/test_datasource/test_configdrive.py1
-rw-r--r--tests/unittests/test_handler/test_handler_apt_configure.py3
3 files changed, 1 insertions, 4 deletions
diff --git a/tests/unittests/test_data.py b/tests/unittests/test_data.py
index e900faa8..e5b227f8 100644
--- a/tests/unittests/test_data.py
+++ b/tests/unittests/test_data.py
@@ -359,7 +359,6 @@ p: 1
mockobj.assert_called_once_with(
ci.paths.get_ipath("cloud_config"), "", 0o600)
-
def test_mime_gzip_compressed(self):
"""Tests that individual message gzip encoding works."""
diff --git a/tests/unittests/test_datasource/test_configdrive.py b/tests/unittests/test_datasource/test_configdrive.py
index fd930877..e28bdd84 100644
--- a/tests/unittests/test_datasource/test_configdrive.py
+++ b/tests/unittests/test_datasource/test_configdrive.py
@@ -110,6 +110,7 @@ class TestConfigDriveDataSource(TestCase):
# and True on its second call. We use a handy generator as
# the mock side effect for this. The mocked function returns
# what the side effect returns.
+
def exists_side_effect():
yield False
yield True
diff --git a/tests/unittests/test_handler/test_handler_apt_configure.py b/tests/unittests/test_handler/test_handler_apt_configure.py
index 6bccff11..d8fe9a4f 100644
--- a/tests/unittests/test_handler/test_handler_apt_configure.py
+++ b/tests/unittests/test_handler/test_handler_apt_configure.py
@@ -19,9 +19,6 @@ class TestAptProxyConfig(TestCase):
self.cfile = os.path.join(self.tmp, "config.cfg")
def _search_apt_config(self, contents, ptype, value):
- ## print(
- ## r"acquire::%s::proxy\s+[\"']%s[\"'];\n" % (ptype, value),
- ## contents, "flags=re.IGNORECASE")
return re.search(
r"acquire::%s::proxy\s+[\"']%s[\"'];\n" % (ptype, value),
contents, flags=re.IGNORECASE)