diff options
author | Scott Moser <smoser@brickies.net> | 2016-09-23 16:51:03 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-09-23 16:51:03 -0400 |
commit | f13a89a1592d0445d93ea42809eba2363454488b (patch) | |
tree | a254dd95a9f45ab55af92402e8c7789e28e2ae80 /tests/unittests/test_handler/test_handler_growpart.py | |
parent | 0e4eaef9640b6aaf09063124959717e05ed52b06 (diff) | |
parent | 0439d8a17d181a2546f2f7cb2d71a04bbb13b186 (diff) | |
download | vyos-cloud-init-f13a89a1592d0445d93ea42809eba2363454488b.tar.gz vyos-cloud-init-f13a89a1592d0445d93ea42809eba2363454488b.zip |
merge from master at 0.7.8-8-g0439d8a
Diffstat (limited to 'tests/unittests/test_handler/test_handler_growpart.py')
-rw-r--r-- | tests/unittests/test_handler/test_handler_growpart.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unittests/test_handler/test_handler_growpart.py b/tests/unittests/test_handler/test_handler_growpart.py index e653488a..e28067de 100644 --- a/tests/unittests/test_handler/test_handler_growpart.py +++ b/tests/unittests/test_handler/test_handler_growpart.py @@ -81,11 +81,11 @@ class TestConfig(TestCase): self.cloud = cloud.Cloud(None, self.paths, None, None, None) self.log = logging.getLogger("TestConfig") self.args = [] - os.environ = {} self.cloud_init = None self.handle = cc_growpart.handle + @mock.patch.dict("os.environ", clear=True) def test_no_resizers_auto_is_fine(self): with mock.patch.object( util, 'subp', @@ -98,6 +98,7 @@ class TestConfig(TestCase): mockobj.assert_called_once_with( ['growpart', '--help'], env={'LANG': 'C'}) + @mock.patch.dict("os.environ", clear=True) def test_no_resizers_mode_growpart_is_exception(self): with mock.patch.object( util, 'subp', @@ -110,6 +111,7 @@ class TestConfig(TestCase): mockobj.assert_called_once_with( ['growpart', '--help'], env={'LANG': 'C'}) + @mock.patch.dict("os.environ", clear=True) def test_mode_auto_prefers_growpart(self): with mock.patch.object( util, 'subp', |