summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2018-11-28 18:23:33 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2018-11-28 18:23:33 +0000
commit4ce8a2858dffcb1f9518b50d884b341f68ac5e63 (patch)
tree1f573ac8d4f4afb1ab179a1e3fe1db94721a0fda /tests/unittests/test_handler
parent2e93cc62c544fe07afaf36c473e84e6730928998 (diff)
downloadvyos-cloud-init-4ce8a2858dffcb1f9518b50d884b341f68ac5e63.tar.gz
vyos-cloud-init-4ce8a2858dffcb1f9518b50d884b341f68ac5e63.zip
tests: fix incorrect order of mocks in test_handle_zfs_root.
The order of parameters to test_handle_zfs_root did not match the order of the mocks applied. Thanks to Jason Zions for pointing this out.
Diffstat (limited to 'tests/unittests/test_handler')
-rw-r--r--tests/unittests/test_handler/test_handler_resizefs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_handler/test_handler_resizefs.py b/tests/unittests/test_handler/test_handler_resizefs.py
index 6ebacb1a..35187847 100644
--- a/tests/unittests/test_handler/test_handler_resizefs.py
+++ b/tests/unittests/test_handler/test_handler_resizefs.py
@@ -151,9 +151,9 @@ class TestResizefs(CiTestCase):
_resize_ufs(mount_point, devpth))
@mock.patch('cloudinit.util.is_container', return_value=False)
- @mock.patch('cloudinit.util.get_mount_info')
- @mock.patch('cloudinit.util.get_device_info_from_zpool')
@mock.patch('cloudinit.util.parse_mount')
+ @mock.patch('cloudinit.util.get_device_info_from_zpool')
+ @mock.patch('cloudinit.util.get_mount_info')
def test_handle_zfs_root(self, mount_info, zpool_info, parse_mount,
is_container):
devpth = 'vmzroot/ROOT/freebsd'