diff options
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_data.py | 1 | ||||
-rw-r--r-- | tests/unittests/test_datasource/test_configdrive.py | 1 | ||||
-rw-r--r-- | tests/unittests/test_handler/test_handler_apt_configure.py | 3 |
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) |