summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unittests/test_userdata.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unittests/test_userdata.py b/tests/unittests/test_userdata.py
index 37ad9b13..8eb7b259 100644
--- a/tests/unittests/test_userdata.py
+++ b/tests/unittests/test_userdata.py
@@ -17,12 +17,17 @@ instance_id = "i-testing"
class FakeDataSource(DataSource):
def __init__(self, userdata):
+ DataSource.__init__(self)
self.metadata = {'instance-id': instance_id}
self.userdata_raw = userdata
class TestConsumeUserData(MockerTestCase):
+ _log_handler = None
+ _log = None
+ log_file = None
+
def setUp(self):
self.mock_write = self.mocker.replace("cloudinit.util.write_file",
passthrough=False)