diff options
author | Mike Milner <mike.milner@canonical.com> | 2012-01-17 13:35:31 -0400 |
---|---|---|
committer | Mike Milner <mike.milner@canonical.com> | 2012-01-17 13:35:31 -0400 |
commit | f52ffe2dda01dd0314523fcac559e6f3fbb3578e (patch) | |
tree | bdc11f80cc0212b1f91adec044769c5beb3975fc /tests/unittests/test_util.py | |
parent | 93b733862c1f5f41a5597aa640c434610ad76231 (diff) | |
download | vyos-cloud-init-f52ffe2dda01dd0314523fcac559e6f3fbb3578e.tar.gz vyos-cloud-init-f52ffe2dda01dd0314523fcac559e6f3fbb3578e.zip |
Lint fixes.
Diffstat (limited to 'tests/unittests/test_util.py')
-rw-r--r-- | tests/unittests/test_util.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unittests/test_util.py b/tests/unittests/test_util.py index f2b2ee3d..d8da8bc9 100644 --- a/tests/unittests/test_util.py +++ b/tests/unittests/test_util.py @@ -5,7 +5,9 @@ from shutil import rmtree import os import stat -from cloudinit.util import mergedict, get_cfg_option_list_or_str, write_file, delete_dir_contents +from cloudinit.util import (mergedict, get_cfg_option_list_or_str, write_file, + delete_dir_contents) + class TestMergeDict(TestCase): def test_simple_merge(self): @@ -65,6 +67,7 @@ class TestMergeDict(TestCase): result = mergedict(source, candidate) self.assertEqual(source, result) + class TestGetCfgOptionListOrStr(TestCase): def test_not_found_no_default(self): """None is returned if key is not found and no default given.""" @@ -96,6 +99,7 @@ class TestGetCfgOptionListOrStr(TestCase): result = get_cfg_option_list_or_str(config, "key") self.assertEqual([], result) + class TestWriteFile(MockerTestCase): def setUp(self): super(TestWriteFile, self).setUp() @@ -174,6 +178,7 @@ class TestWriteFile(MockerTestCase): write_file(path, contents) + class TestDeleteDirContents(TestCase): def setUp(self): super(TestDeleteDirContents, self).setUp() |