Raise error if server received windows path

This commit is contained in:
Julien Duponchelle committed 2015-11-12 15:38:47 +01:00
1 parent 58e7fa2f01
commit 5b347fe48f
2 files changed
+10 -2

No files matched your search

+2 -2
View File
@@ -117,8 +117,8 @@ def test_get_abs_image_path_non_local(qemu, tmpdir):
assert qemu.get_abs_image_path(path1) == path1
with pytest.raises(VMError):
qemu.get_abs_image_path(path2)
# with pytest.raises(VMError):
# qemu.get_abs_image_path("C:\\test2.bin")
with pytest.raises(VMError):
qemu.get_abs_image_path("C:\\test2.bin")
with patch("gns3server.config.Config.get_section_config", return_value={"images_path": str(tmpdir / "images"), "local": True}):
assert qemu.get_abs_image_path(path2) == path2