1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-15 12:59:06 +00:00

Fix test suite on Windows

This commit is contained in:
Julien Duponchelle 2015-05-21 11:46:55 +02:00
parent 21cc41fd16
commit 4d50d00b3e
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ def test_vpcs_get(server, project, vm):
assert response.route == "/projects/{project_id}/vpcs/vms/{vm_id}"
assert response.json["name"] == "PC TEST 1"
assert response.json["project_id"] == project.id
assert response.json["startup_script_path"] == None
assert response.json["startup_script_path"] is None
def test_vpcs_create_startup_script(server, project):
@ -51,7 +51,7 @@ def test_vpcs_create_startup_script(server, project):
assert response.route == "/projects/{project_id}/vpcs/vms"
assert response.json["name"] == "PC TEST 1"
assert response.json["project_id"] == project.id
assert response.json["startup_script"] == "ip 192.168.1.2\necho TEST"
assert response.json["startup_script"] == os.linesep.join(["ip 192.168.1.2", "echo TEST"])
assert response.json["startup_script_path"] == "startup.vpc"

View File

@ -190,7 +190,7 @@ def test_update_startup_script_h(vm):
def test_get_startup_script(vm):
content = "echo GNS3 VPCS\nip 192.168.1.2\n"
content = os.linesep.join(["echo GNS3 VPCS", "ip 192.168.1.2"])
vm.startup_script = content
assert vm.startup_script == content