From f8cba8cd50bb12bc4dd40e3933eb6e67965dfb0e Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 25 Oct 2016 12:13:42 +0200 Subject: [PATCH] Fix crash in tests --- tests/controller/test_controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/controller/test_controller.py b/tests/controller/test_controller.py index 60b3b4e4..c7b56f66 100644 --- a/tests/controller/test_controller.py +++ b/tests/controller/test_controller.py @@ -416,7 +416,7 @@ def test_stop_vm(controller, async_run): "engine": "vmware", "when_exit": "stop" } - controller.gns3vm._current_engine().running = True + controller.gns3vm.current_engine().running = True with asyncio_patch("gns3server.controller.gns3vm.vmware_gns3_vm.VMwareGNS3VM.stop") as mock: async_run(controller.stop()) assert mock.called @@ -431,7 +431,7 @@ def test_suspend_vm(controller, async_run): "engine": "vmware", "when_exit": "suspend" } - controller.gns3vm._current_engine().running = True + controller.gns3vm.current_engine().running = True with asyncio_patch("gns3server.controller.gns3vm.vmware_gns3_vm.VMwareGNS3VM.suspend") as mock: async_run(controller.stop()) assert mock.called @@ -446,7 +446,7 @@ def test_keep_vm(controller, async_run): "engine": "vmware", "when_exit": "keep" } - controller.gns3vm._current_engine().running = True + controller.gns3vm.current_engine().running = True with asyncio_patch("gns3server.controller.gns3vm.vmware_gns3_vm.VMwareGNS3VM.suspend") as mock: async_run(controller.stop()) assert not mock.called