1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-11 08:30:57 +00:00

Small change in order to avoid a PEP8 warning

This commit is contained in:
Julien Duponchelle 2015-01-23 11:30:49 +01:00
parent f97c2b2cbe
commit 9a0b260c56

View File

@ -53,12 +53,12 @@ def test_vm_invalid_vboxmanage_path(project, manager):
vm._find_vboxmanage()
tmpfile = tempfile.NamedTemporaryFile()
@patch("gns3server.config.Config.get_section_config", return_value={"vboxmanage_path": tmpfile.name})
def test_vm_non_executable_vboxmanage_path(project, manager, loop):
with pytest.raises(VirtualBoxError):
vm = VirtualBoxVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0e", project, manager, "test", False)
vm._find_vboxmanage()
tmpfile = tempfile.NamedTemporaryFile()
with patch("gns3server.config.Config.get_section_config", return_value={"vboxmanage_path": tmpfile.name}):
with pytest.raises(VirtualBoxError):
vm = VirtualBoxVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0e", project, manager, "test", False)
vm._find_vboxmanage()
def test_vm_valid_virtualbox_api_version(loop, project, manager):