diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_handler_ca_certs.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_handler_ca_certs.py b/tests/unittests/test_handler_ca_certs.py index c289a4f6..d6513b5b 100644 --- a/tests/unittests/test_handler_ca_certs.py +++ b/tests/unittests/test_handler_ca_certs.py @@ -3,6 +3,7 @@ from mocker import MockerTestCase from cloudinit.util import write_file, delete_dir_contents from cloudinit.CloudConfig.cc_ca_certs import ( handle, update_ca_certs, add_ca_certs, remove_default_ca_certs) +from logging import getLogger class TestNoConfig(MockerTestCase): @@ -10,7 +11,7 @@ class TestNoConfig(MockerTestCase): super(TestNoConfig, self).setUp() self.name = "ca-certs" self.cloud_init = None - self.log = None + self.log = getLogger("TestNoConfig") self.args = [] def test_no_config(self): @@ -31,7 +32,7 @@ class TestConfig(MockerTestCase): super(TestConfig, self).setUp() self.name = "ca-certs" self.cloud_init = None - self.log = None + self.log = getLogger("TestNoConfig") self.args = [] # Mock out the functions that actually modify the system |