More VirtualBox work.

This commit is contained in:
Jeremy committed 2015-01-22 19:07:09 -07:00
1 parent d9b02efbfa
commit 05c0efe39b
4 files changed
+151 -39

No files matched your search

+7
View File
@@ -70,3 +70,10 @@ def test_vbox_resume(server, vm):
response = server.post("/virtualbox/{}/resume".format(vm["uuid"]))
assert mock.called
assert response.status == 204
def test_vbox_reload(server, vm):
with asyncio_patch("gns3server.modules.virtualbox.virtualbox_vm.VirtualBoxVM.reload", return_value=True) as mock:
response = server.post("/virtualbox/{}/reload".format(vm["uuid"]))
assert mock.called
assert response.status == 204